kandi X-RAY | abp Summary
kandi X-RAY | abp Summary
ABP Framework is a complete infrastructure based on the ASP.NET Core to create modern web applications and APIs by following the software development best practices and the latest technologies.
Top functions reviewed by kandi - BETA
abp Key Features
abp Examples and Code Snippets
Trending Discussions on abp
I searched the documentation without finding a clear answer to this question. I want to create a background worker in ABP Framework (https://docs.abp.io/en/abp/latest/Background-Workers).
But I don't know in which project / layer I should create it. I have the feeling the background job belongs to Domain layer. Is it correct? Does it belongs to the Application layer instead? Or does it depends of what the background worker does? What is the best practice?...
ANSWERAnswered 2022-Apr-01 at 10:16
As you said, I think it depends on what the background worker does. But generally speaking, I think it should be in the domain layer because it's not a use-case that can be triggered with user/actor interaction, it is just a worker service that runs periodically.
I'm absolutely new to the ABP-Framework. I've followed the "Web Application Development Tutorial". Now I want to use the search in the DataTable. In the file "Index.js" I've set the "search" to "true" but nothings happens....
ANSWERAnswered 2021-Oct-14 at 10:19
If you set
searching:true for your datatable it only searches through current page values by row. (https://datatables.net/reference/option/searching)
So, if you want to search records according to your all records, you need to add a search input on your .cshtml file and get the value of that search input and pass this value to the GetList method(of course you need to override the GetList method from YourAppService as well).
- Create a new DTO
MySearchFilterDto.cs -> (under ApplicationContracts)
When I publish my ABP project I get the following error:...
ANSWERAnswered 2022-Jan-13 at 21:59
The issue raises after .NET 6 migration. There's a new feature that blocks multiple files from being copied to the same target directory with the same file name. See https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/duplicate-files-in-output
Solution #1 (workaround):
You can add the following build property to all your publishable (*.Web) projects' *.csproj files. This property will bypass this check and works as previously, in .NET5.
UPDATE 2: FIXED THE CODE at the end
I have the abp.io service below with 2 parameters in the constructor instantiated via DI.
One of them,
IOutcomeWriter, has 2 implementations.
I'd like to define at runtime which of the implementations of
IOutcomeWriter to use.
This is the main service:...
ANSWERAnswered 2022-Mar-17 at 12:24
If I understand correctly, you need the
IOutcomeWriter to differ based on the currently executed job. In other words, that means that you need to dynamically switch the writer based on its context.
The fact that it you need to change it dynamically, it means that is not a problem that can be solved solely using your DI configuration, because DI configurations are best kept static.
Instead, you need to mix and match a few concepts. First of all, you need a way to set the used job in the context. For instance:
I am implementing the BLOB Storing capability provided through the Volo.Abp.BlobStoring.IBlobContainer interface.
I believe I have everything coded and configured correctly but a recent deprecation by Microsoft has me wondering if there is a better implementation than what I am attempting.
Here is my code:...
ANSWERAnswered 2022-Mar-11 at 22:54
I'm working on learning the Abp framework and in my project I am using a third party REST service that requires authentication and the session can expire. I found the documentation on handling exceptions:
and have implemented a subscriber where I find my custom exception that I'm throwing when I detect a session has expired. I'm using the same username/password for my site as the third party account so I need to send the user back to the login page if the REST session expires. I tried to do something crazy like this in the .Application project...
ANSWERAnswered 2022-Mar-01 at 08:24
Your code just creates an RedirectOjbectResult and does nothing else.
You have to inject
IHttpContextAccessor and add a redirect to response of HttpContext.
I use Abp.io framework and build .net core razor application including api.
It work perfectly on my localhost, but after I deploy to smarterasp.net, the login doesn't work anymore.
My URL is ,for example
I already change the appsetting of
AuthServer:Authority to above URL.
But still doesn't work, after login, it's redirect to login page again even the user name is password are correct, and no console error.
How can I fix this issue?
ANSWERAnswered 2022-Feb-27 at 13:43
I fixed this issue by using this reference (How to fix the Chrome login issue for the IdentityServer4).
I would like to integrate MassTransit with Aspnetboilerplate project to use RabbitMQ as distributed event bus. Then potentially look to integrate Azure Service bus.
I am struggling in how to create a simple Eventbus and implement register and subscribe. Unfortunately I cannot find any good examples of this being done.
I can use the Aspnetboilerplate EventBus without any issues. An example of what I am looking to achieve is the following:...
ANSWERAnswered 2022-Feb-23 at 16:51
We have 2 docker containers, 1 each for identity server and another for an application. I am able to authorize the swagger page but when I execute an end-point in the swagger page, I see Internal Server 500 error.
Below is the response while using edge dev-tools: Status 500 while SetCsrfCookie //initiator abp.swagger.js...
ANSWERAnswered 2022-Feb-23 at 08:44
You should enable the
ShowPII flag first to get an actual error message.
How this is done is answered here.
In my case the URL used to fetch the discovery document was wrong but it could be really anything. The actual error message will give you a glue.
On Abp community site there are a few articles on how to access an Abp endpoint from Xamarin/Maui. Basically it boils down to:
- create mobile client
- login with user name and password
- obtain access token
- use this token as bearer for API calls.
However, in the microservices samples there is a Console app sample which has services injected and used. Now that would be quite awesome to use inside xamarin.
My question is: can abp application services be used directly in xamarin forms? I see no way of injecting the services....
ANSWERAnswered 2022-Feb-23 at 08:02
I can share a couple of articles about it, I think those might help:
MAUI, but they'll work on Xamarin too:
No vulnerabilities reported
Getting Started guide can be used to create and run ABP based solutions with different options and details.
Web Application Development Tutorial is a complete tutorial to develop a full stack web application with all aspects of a real-life solution.
Install the ABP CLI:.
Reuse Trending Solutions
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page