Hello,
Unfortunately, ABP Suite does not currently support this feature. However, you can extend and add it via the code generated by the Suite. If you want your own code not to be overwritten by ABP Suite afterwards, you need to select the checkbox in the picture below and write your code to the extended classes accordingly. See more: https://abp.io/docs/latest/suite/customizing-the-generated-code
Hi,
First of all, you don't need to create an extended of each class. This is a feature to allow customization when code is generated with Suite. See more: https://abp.io/docs/latest/suite/customizing-the-generated-code
Secondly, you don't need to create a controller, ABP creates the controller for you from ApplicationService. But you can still create it if you want to, of course. See more: https://abp.io/docs/latest/framework/api-development/auto-controllers
In your case, there should be a structure like the one below:
ILearnworldsApiService:
public interface ILearnworldsApiService : IApplicationService
{
Task<LookupDto<LearnwroldsActivitiesDto>> GetActivitiesBySchoolAsync(Guid tenantId);
}
LearnworldsApiService:
public class LearnworldsApiService : MyAppService, ILearnworldsApiService
{
private readonly IMyRepository _myRepository;
private readonly MyLearnManager _myLearnManager;
public AuthorAppService(
IMyRepository myRepository,
MyLearnManager myLearnManager)
{
_myRepository = myRepository;
_myLearnManager = myLearnManager;
}
public async Task<LookupDto<LearnwroldsActivitiesDto>> GetActivitiesBySchoolAsync(Guid tenantId)
{
// ....
}
}
LearnworldsApiController:
You don't need it, but if you want to create it, you can create it similar to this one here: https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserController.cs
Hello Leeneshk,
If you share your ILearnworldsApiService and LearnworldsApiController constructor dependencies, We can provide more specific guidance.
Hello a.mourad,
IRemoteStreamContent interface is as follows:
public interface IRemoteStreamContent : IDisposable
{
string? FileName { get; }
string ContentType { get; }
long? ContentLength { get; }
Stream GetStream();
}
You can see that it contains streams.
Actually the exception is not thrown by ABP but by .NET. Here is why: https://stackoverflow.com/questions/55674322/getting-the-inner-stream-position-has-changed-unexpectedly-in-aws-lambda/55674833#55674833
Here's where the exception was thrown: https://github.com/dotnet/aspnetcore/blob/81b289460a9ce5fcbd0d32d80a645f139dffc422/src/Http/Http/src/Internal/ReferenceReadStream.cs#L70
Hello Mariovh,
You can check our Static C# API Client Proxies document for this. https://abp.io/docs/latest/framework/api-development/static-csharp-clients
Also, if you are having performance issues, I can recommend you to switch to Blazor WebApp from Blazor WASM. See differences: https://medium.com/@meghnav274/blazor-server-vs-blazor-webassembly-vs-blazor-web-app-8fe8fc1cefeb
Here is the migrating document: https://abp.io/docs/9.0/release-info/migration-guides/abp-8-2-blazor-web-app
I saw the mail you sent, but when I clicked on the link of your application, I could not get a meaningful result when it sent a request to localhost, but there is still something I would like you to try.
Can you update the Program class of your MyApp.Blazor project as in the picture below?
Then update your ingress file as in the picture below:
If these do not work, if you can send your project to the drive and send the link from the mail, I think we can get much faster results if it is also suitable for you.
Hello,
We have sample projects for domain tenant resolver. You can compare your own application with the sample application and find out what the problem is.
Sample projects: https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver/OpenIddict
Hello rsg160,
Can you run abp install-libs in the terminal and try again before deploying the solution? I suspect this step is not working properly when the abp update command is running.
Hello,
Thank you for reporting the problem. This problem seems to be solved in the new version, so you can update your solution by following the steps below:
abp update --version 9.1.0-rc.2 command in solution folderVolo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX in all csproj files and change version to 4.1.0-rc.2OpenIddictConstants.Permissions.Endpoints.Logout to OpenIddictConstants.Permissions.Endpoints.EndSession
OpenIddictConstants.Permissions.Endpoints.Device to OpenIddictConstants.Permissions.Endpoints.DeviceAuthorization
Hello,
To reproduce the problem I created a Blazor Server project and did what you did. In my case it worked. In this case I think the problem is caused by the dependencies of your modules and host application. If your modules depend on the account module but you don't really need it, you can remove them. Similarly, such repetitive dependencies on both sides should be removed. The end application already depends on them and it should be its responsibility to manage this dependency.