Activities of "maliming"

hi

EF Core & ABP support this case, You can begin a new uow in a controller action.

Once a new UOW started, it creates an ambient scope that is participated by all the database operations performed in the current scope and considered as a single transaction boundary. The operations are committed (on success) or rolled back (on exception) all together.

  • Initiation of transaction scope at the controller level
  • Automatic rollback of all database operations (performed across multiple DbContexts) in case of any exception during the process
  • Commit of all changes when the transaction is successful
[HttpPost]
[Route("add-input-output-types" )]
public async Task<IActionResult> CreateInputOutputType([FromBody] CreateInputOutputTypeCommand dto)
{
    using (var uow = UnitOfWorkManager.Begin(requiresNew: true, isTransactional: true))
    {
        try
        {
            // You application service call.
            await uow.CompleteAsync();
        }
        catch (Exception e)
        {
            Logger.LogException(e);
            await uow.RollbackAsync();
        }
    }
}

hi

Thanks. I will check and fix that.

hi

You can try to remove the app.UseAbpStudioLink(); or depend on the typeof(AbpStudioClientAspNetCoreModule)

: )

hi

Can you try to add <PackageReference Include="System.Private.ServiceModel" Version="4.10.2" /> to your Cincaporc.WebApp.HttpApi.Host?

I think this only happened on your machine.

hi

It works on my machine. You can try to run abp clean command then re-run the Cincaporc.WebApp.HttpApi.Host.

[20:34:29 INF] Starting Cincaporc.WebApp.HttpApi.Host.
[20:34:31 INF] Loaded ABP modules:
[20:34:31 INF] - Cincaporc.WebApp.WebAppHttpApiHostModule
[20:34:31 INF]   - Cincaporc.WebApp.WebAppHttpApiModule
[20:34:31 INF]     - Cincaporc.WebApp.WebAppApplicationContractsModule
[20:34:31 INF]       - Cincaporc.WebApp.WebAppDomainSharedModule
[20:34:31 INF]         - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
[20:34:31 INF]           - Volo.Abp.Validation.AbpValidationModule
[20:34:31 INF]             - Volo.Abp.Validation.AbpValidationAbstractionsModule
[20:34:31 INF]             - Volo.Abp.Localization.AbpLocalizationModule
[20:34:31 INF]               - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
[20:34:31 INF]               - Volo.Abp.Settings.AbpSettingsModule
[20:34:31 INF]                 - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
[20:34:31 INF]                 - Volo.Abp.Security.AbpSecurityModule
[20:34:31 INF]                 - Volo.Abp.Data.AbpDataModule
[20:34:31 INF]                   - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
[20:34:31 INF]                   - Volo.Abp.Uow.AbpUnitOfWorkModule
[20:34:31 INF]                   - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
[20:34:31 INF]               - Volo.Abp.Threading.AbpThreadingModule
[20:34:31 INF]         - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule
[20:34:31 INF]         - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule
[20:34:31 INF]           - Volo.Abp.Json.SystemTextJson.AbpJsonSystemTextJsonModule
[20:34:31 INF]             - Volo.Abp.Json.AbpJsonAbstractionsModule
[20:34:31 INF]             - Volo.Abp.Timing.AbpTimingModule
[20:34:31 INF]         - Volo.Abp.Identity.AbpIdentityProDomainSharedModule
[20:34:31 INF]           - Volo.Abp.Identity.AbpIdentityDomainSharedModule
[20:34:31 INF]             - Volo.Abp.Users.AbpUsersDomainSharedModule
[20:34:31 INF]             - Volo.Abp.Features.AbpFeaturesModule
[20:34:31 INF]               - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
[20:34:31 INF]                 - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule
[20:34:31 INF]               - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
[20:34:31 INF]           - Volo.Abp.Ldap.AbpLdapAbstractionsModule
[20:34:31 INF]         - Volo.Abp.OpenIddict.AbpOpenIddictDomainSharedModule
[20:34:31 INF]         - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
//...
[20:34:31 INF]       - Volo.Abp.BackgroundWorkers.Hangfire.AbpBackgroundWorkersHangfireModule
[20:34:31 INF]         - Volo.Abp.Hangfire.AbpHangfireModule
[20:34:31 INF]   - Cincaporc.WebApp.EntityFrameworkCore.WebAppEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityProEntityFrameworkCoreModule
[20:34:31 INF]       - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule
[20:34:31 INF]         - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule
[20:34:31 INF]           - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.OpenIddict.EntityFrameworkCore.AbpOpenIddictEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.EntityFrameworkCore.PostgreSql.AbpEntityFrameworkCorePostgreSqlModule
[20:34:31 INF]     - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.LanguageManagement.EntityFrameworkCore.LanguageManagementEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Saas.EntityFrameworkCore.SaasEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.TextTemplateManagement.EntityFrameworkCore.TextTemplateManagementEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.Gdpr.AbpGdprEntityFrameworkCoreModule
[20:34:31 INF]     - Volo.Abp.BlobStoring.Database.EntityFrameworkCore.BlobStoringDatabaseEntityFrameworkCoreModule
[20:34:31 INF]   - Volo.Abp.Swashbuckle.AbpSwashbuckleModule
[20:34:31 INF]   - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
[20:34:31 INF]   - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule
[20:34:31 INF] Start installing Hangfire SQL objects...
[20:34:31 INF] Hangfire SQL objects installed.
[20:34:31 INF] Starting Hangfire Server using job storage: 'PostgreSQL Server: Host: localhost, DB: ExtranetDev, Schema: hangfire'
[20:34:31 INF] Using the following options for PostgreSQL job storage:
[20:34:31 INF] Server malim:92837:6092d144 successfully announced in 65.8427 ms
[20:34:31 DBG] Execution loop ServerHeartbeatProcess:331fb301 has started in 0.4855 ms
[20:34:31 INF] Server malim:92837:6092d144 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler...
[20:34:32 INF] ErpFake service has been initialized
[20:34:32 INF] ErpService has been initialized
[20:34:32 INF] User profile is available. Using '/Users/maliming/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
[20:34:32 DBG] Waiting to acquire the distributed lock for saving external localizations...
[20:34:32 INF] Saving external localizations...
[20:34:34 INF] Initialized all ABP modules.
[20:34:34 INF] Initializing UI Database
[20:34:34 INF] Saving healthchecks configuration to database
[20:34:34 INF] Now listening on: https://localhost:44368
[20:34:34 DBG] Executing HealthCheck collector HostedService.
[20:34:34 INF] Start processing HTTP request GET https://localhost:44368/health-status
[20:34:34 INF] Sending HTTP request GET https://localhost:44368/health-status
[20:34:34 INF] Application started. Press Ctrl+C to shut down.
[20:34:34 INF] Hosting environment: Development
[20:34:34 INF] Content root path: /Users/maliming/Github/Cincaporc.WebApp/src/Cincaporc.WebApp.HttpApi.Host
[20:34:34 INF] Request starting HTP/1.1 GET https://localhost:44368/health-status - null null
[20:34:41 INF] Request finished HTTP/2 GET https://localhost:44368/favicon.ico - 404 0 null 3.4824ms
[20:34:41 INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://localhost:44368/favicon.ico, Response status code: 404
[20:34:42 INF] Completed to save external localizations.
[20:34:44 INF] Request starting HTTP/2 GET https://localhost:44368/ - null null
[20:34:44 INF] Executing endpoint 'Cincaporc.WebApp.Controllers.HomeController.Index (Cincaporc.WebApp.HttpApi.Host)'
[20:34:44 INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Cincaporc.WebApp.Controllers.HomeController (Cincaporc.WebApp.HttpApi.Host).
[20:34:44 INF] Executing RedirectResult, redirecting to /swagger.
[20:34:44 INF] Executed action Cincaporc.WebApp.Controllers.HomeController.Index (Cincaporc.WebApp.HttpApi.Host) in 18.1288ms
[20:34:44 INF] Executed endpoint 'Cincaporc.WebApp.Controllers.HomeController.Index (Cincaporc.WebApp.HttpApi.Host)'
[20:34:44 INF] Request finished HTTP/2 GET https://localhost:44368/ - 302 0 null 82.5294ms

Thanks. I have joined.

hi

Can you invite me again?

Thanks.

Ok I will check it asap. : )

Do I need any additional steps?

Showing 2761 to 2770 of 11556 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.