Browse Source
Merge pull request #9743 from abpframework/maliming/IServerSideBlazorBuilder
Support pre-configure IServerSideBlazorBuilder.
pull/9756/head
liangshiwei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
5 deletions
-
framework/src/Volo.Abp.AspNetCore.Components.Server/Volo/Abp/AspNetCore/Components/Server/AbpAspNetCoreComponentsServerModule.cs
|
|
@ -25,18 +25,19 @@ namespace Volo.Abp.AspNetCore.Components.Server |
|
|
{ |
|
|
{ |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Services.AddServerSideBlazor(); |
|
|
var serverSideBlazorBuilder = context.Services.AddServerSideBlazor(); |
|
|
|
|
|
context.Services.ExecutePreConfiguredActions(serverSideBlazorBuilder); |
|
|
|
|
|
|
|
|
Configure<AbpAspNetCoreUnitOfWorkOptions>(options => |
|
|
Configure<AbpAspNetCoreUnitOfWorkOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.IgnoredUrls.AddIfNotContains("/_blazor"); |
|
|
options.IgnoredUrls.AddIfNotContains("/_blazor"); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
Configure<AbpAspNetCoreAuditingOptions>(options => |
|
|
Configure<AbpAspNetCoreAuditingOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.IgnoredUrls.AddIfNotContains("/_blazor"); |
|
|
options.IgnoredUrls.AddIfNotContains("/_blazor"); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
Configure<AbpEndpointRouterOptions>(options => |
|
|
Configure<AbpEndpointRouterOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.EndpointConfigureActions.Add(endpointContext => |
|
|
options.EndpointConfigureActions.Add(endpointContext => |
|
|
@ -56,4 +57,4 @@ namespace Volo.Abp.AspNetCore.Components.Server |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|