A framework based on asp.net core which helps to develop scalable software for web and mobile applications.
Questions tagged [bit-framework]
12 questions
4
votes
1 answer
add exception type to bit framework known exceptions
based on docs, there are some known exception types in bit-framework.
https://docs.bit-framework.com/docs/bit-server-side/web-api.html#exceptions
How can we extend this list?

1SaeedSalehi
- 364
- 1
- 8
- 16
3
votes
1 answer
access to IApplicationBuilder using Bit Framework
I am using bit framework in my project, I want to add UseHttpsRedirection as a middleware in appstartup.cs, how can i do this using bit framework?

Elham Ajdari
- 185
- 9
3
votes
1 answer
Can we using bit-framework in Linux based OS?
According to the official document:
Your app can be hosted on Traditional ASP.NET or ASP.NET Core (With Full .NET Framework). ASP.NET Core with .NET Core support will be added in near future. You can track that by following this issue.
It seems…

J.Hpour
- 971
- 11
- 20
1
vote
2 answers
Can ASP.NET target .net core?
I'm just added to a project which is targeting netcoreapp3.1.
I can see bit framework package is added to the project.
The problem is that this package(bit framework) seems to use asp.net (not asp.net core)
On the other hand asp.net projects can't…

Shahryar Saljoughi
- 2,599
- 22
- 41
1
vote
1 answer
How to create PFX file to use in Bit.IdentityServer?
I'm using Bit.IdentityService to protect my resources. In order To do that I need a pfx file.
I can copy the IdentityServerCertificate.pfx file from the sample project provided by bit-foundation in my own project and use it.
However instead of using…

Shahryar Saljoughi
- 2,599
- 22
- 41
1
vote
2 answers
what is Correct Exception to raise in a rest API in response to request to delete a resource without enough permission?
I'm creating a rest API, using ASP.net Core and bit-framework
We want to allow the clients to be able to delete just the resources that they have created themselves
Questions:
In case a client asks to delete a resource which is created by another…

Shahryar Saljoughi
- 2,599
- 22
- 41
1
vote
1 answer
How to have nested configurations in config json file and read it using bit?
so far I've seen some sample code in which some configuration is inserted in a file named environment.json like this:
[
{
"Name": "Default",
"AppInfo": {
"Name": "blahblah",
"Version": "1"
},
"Configs":…

Shahryar Saljoughi
- 2,599
- 22
- 41
1
vote
0 answers
How To Have Modular EF Context in Different Projects in Bit-Framework?
I have many projects in a solution that use bit-framework. When I use many contexts in different projects, I have just last Repository of the last Module.
public IEnumerable GetAppModules()
{
yield return this;
…

behzad abbasi
- 151
- 1
- 4
1
vote
1 answer
How can I filter data only by date without comparing their times in bit framework?
I've following codes:
// 2017-Sep(09)-05 is selected in date picker
const dateToSearch = new Date(2017, 8 /*Month starts from zero*/, 5);
// context is oData context.
const customersOfThatSpecificDay = await context.customers.filter((c, d) =>…

Ramin Pedram
- 33
- 5
1
vote
1 answer
How To Have Modular Dependency Registration in Different Projects in Bit-Framework?
I have many projects in a solution that use bit-framework. I need to register Interfaces in each projects, and have Modular Registration. How can do that?

moshtaba morsali
- 236
- 3
- 8
1
vote
1 answer
How can I configure web api's http configuration in bit framework based apps?
I've configured web api using following code:
dependencyManager.RegisterWebApiMiddleware(webApiDependencyManager =>
{
webApiDependencyManager.RegisterWebApiMiddlewareUsingDefaultConfiguration();
});
How can I customize http configuration?

Yaser Moradi
- 3,267
- 3
- 24
- 50
0
votes
1 answer
Packages failed to restore during build phase for Bit Framework
I'm creating my first build definition of a project based on Bit Framework.
I'm getting this error on Nuget Restore task on my build definition.
The nuget command failed with exit code(1) and error(NU1101:
Unable to find package BCrypt.Net-Next.
No…

mehrandvd
- 8,806
- 12
- 64
- 111