Browse Source

Merge pull request #2014 from abpframework/maliming/Sample

Update the Sample project.
pull/2018/head
maliming 7 years ago
committed by GitHub
parent
commit
644097c167
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs
  2. 2
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain/BookStoreDomainModule.cs
  3. 6
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.HttpApi.Host/BookStoreHttpApiHostModule.cs
  4. 2
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.MongoDB/MongoDb/BookStoreMongoDbModule.cs
  5. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs
  6. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.Domain/BookStoreDomainModule.cs
  7. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/BookStoreMigrationsDbContextFactory.cs
  8. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs
  9. 4
      samples/BookStore-Modular/application/src/Acme.BookStore.Web/BookStoreWebModule.cs
  10. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/BookManagementHttpApiHostModule.cs
  11. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/EntityFrameworkCore/MyProjectHttpApiHostMigrationsDbContextFactory.cs
  12. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/BookManagementIdentityServerModule.cs
  13. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/EntityFrameworkCore/IdentityServerHostMigrationsDbContextFactory.cs
  14. 10
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Host/BookManagementWebHostModule.cs
  15. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Unified/EntityFrameworkCore/UnifiedDbContextFactory.cs
  16. 2
      samples/BookStore/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs
  17. 2
      samples/BookStore/src/Acme.BookStore.Domain/BookStoreDomainModule.cs
  18. 2
      samples/BookStore/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs
  19. 4
      samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs
  20. 2
      samples/DashboardDemo/src/DashboardDemo.Domain.Shared/DashboardDemoDomainSharedModule.cs
  21. 2
      samples/DashboardDemo/src/DashboardDemo.Domain/DashboardDemoDomainModule.cs
  22. 2
      samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/DashboardDemoMigrationsDbContextFactory.cs
  23. 2
      samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore/EntityFrameworkCore/DashboardDemoEntityFrameworkCoreModule.cs
  24. 4
      samples/DashboardDemo/src/DashboardDemo.Web/DashboardDemoWebModule.cs

2
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain/BookStoreDomainModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
[DependsOn( [DependsOn(
typeof(BookStoreDomainSharedModule), typeof(BookStoreDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

6
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.HttpApi.Host/BookStoreHttpApiHostModule.cs

@ -54,7 +54,7 @@ namespace Acme.BookStore
ConfigureSwaggerServices(context); ConfigureSwaggerServices(context);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -86,7 +86,7 @@ namespace Acme.BookStore
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>
@ -123,7 +123,7 @@ namespace Acme.BookStore
}); });
} }
private void ConfigureCors(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureCors(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddCors(options => context.Services.AddCors(options =>
{ {

2
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.MongoDB/MongoDb/BookStoreMongoDbModule.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.MongoDB
typeof(AbpSettingManagementMongoDbModule), typeof(AbpSettingManagementMongoDbModule),
typeof(AbpIdentityMongoDbModule), typeof(AbpIdentityMongoDbModule),
typeof(AbpIdentityServerMongoDbModule), typeof(AbpIdentityServerMongoDbModule),
typeof(BackgroundJobsMongoDbModule), typeof(AbpBackgroundJobsMongoDbModule),
typeof(AbpAuditLoggingMongoDbModule), typeof(AbpAuditLoggingMongoDbModule),
typeof(AbpTenantManagementMongoDbModule), typeof(AbpTenantManagementMongoDbModule),
typeof(AbpFeatureManagementMongoDbModule) typeof(AbpFeatureManagementMongoDbModule)

2
samples/BookStore-Modular/application/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/BookStore-Modular/application/src/Acme.BookStore.Domain/BookStoreDomainModule.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore
[DependsOn( [DependsOn(
typeof(BookStoreDomainSharedModule), typeof(BookStoreDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

2
samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/BookStoreMigrationsDbContextFactory.cs

@ -19,7 +19,7 @@ namespace Acme.BookStore.EntityFrameworkCore
return new BookStoreMigrationsDbContext(builder.Options); return new BookStoreMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs

@ -21,7 +21,7 @@ namespace Acme.BookStore.EntityFrameworkCore
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(BackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule), typeof(AbpFeatureManagementEntityFrameworkCoreModule),

4
samples/BookStore-Modular/application/src/Acme.BookStore.Web/BookStoreWebModule.cs

@ -82,7 +82,7 @@ namespace Acme.BookStore.Web
ConfigureSwaggerServices(context.Services); ConfigureSwaggerServices(context.Services);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -90,7 +90,7 @@ namespace Acme.BookStore.Web
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/BookManagementHttpApiHostModule.cs

@ -89,7 +89,7 @@ namespace Acme.BookStore.BookManagement
options.ApiName = "BookManagement"; options.ApiName = "BookManagement";
}); });
Configure<AbpCacheOptions>(options => Configure<AbpDistributedCacheOptions>(options =>
{ {
options.KeyPrefix = "BookManagement:"; options.KeyPrefix = "BookManagement:";
}); });

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/EntityFrameworkCore/MyProjectHttpApiHostMigrationsDbContextFactory.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.BookManagement.EntityFrameworkCore
return new MyProjectHttpApiHostMigrationsDbContext(builder.Options); return new MyProjectHttpApiHostMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/BookManagementIdentityServerModule.cs

@ -108,7 +108,7 @@ namespace Acme.BookStore.BookManagement
options.ApiName = configuration["AuthServer:ApiName"]; options.ApiName = configuration["AuthServer:ApiName"];
}); });
Configure<AbpCacheOptions>(options => Configure<AbpDistributedCacheOptions>(options =>
{ {
options.KeyPrefix = "BookManagement:"; options.KeyPrefix = "BookManagement:";
}); });

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/EntityFrameworkCore/IdentityServerHostMigrationsDbContextFactory.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.BookManagement.EntityFrameworkCore
return new IdentityServerHostMigrationsDbContext(builder.Options); return new IdentityServerHostMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

10
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Host/BookManagementWebHostModule.cs

@ -85,15 +85,15 @@ namespace Acme.BookStore.BookManagement
ConfigureRedis(context, configuration, hostingEnvironment); ConfigureRedis(context, configuration, hostingEnvironment);
} }
private void ConfigureCache(IConfigurationRoot configuration) private void ConfigureCache(IConfiguration configuration)
{ {
Configure<AbpCacheOptions>(options => Configure<AbpDistributedCacheOptions>(options =>
{ {
options.KeyPrefix = "BookManagement:"; options.KeyPrefix = "BookManagement:";
}); });
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -109,7 +109,7 @@ namespace Acme.BookStore.BookManagement
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication(options => context.Services.AddAuthentication(options =>
{ {
@ -177,7 +177,7 @@ namespace Acme.BookStore.BookManagement
private void ConfigureRedis( private void ConfigureRedis(
ServiceConfigurationContext context, ServiceConfigurationContext context,
IConfigurationRoot configuration, IConfiguration configuration,
IWebHostEnvironment hostingEnvironment) IWebHostEnvironment hostingEnvironment)
{ {
context.Services.AddStackExchangeRedisCache(options => context.Services.AddStackExchangeRedisCache(options =>

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Unified/EntityFrameworkCore/UnifiedDbContextFactory.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.BookManagement.EntityFrameworkCore
return new UnifiedDbContext(builder.Options); return new UnifiedDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/BookStore/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/BookStore/src/Acme.BookStore.Domain/BookStoreDomainModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
[DependsOn( [DependsOn(
typeof(BookStoreDomainSharedModule), typeof(BookStoreDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

2
samples/BookStore/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs

@ -20,7 +20,7 @@ namespace Acme.BookStore.EntityFrameworkCore
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(BackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule) typeof(AbpFeatureManagementEntityFrameworkCoreModule)

4
samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs

@ -73,7 +73,7 @@ namespace Acme.BookStore.Web
ConfigureSwaggerServices(context.Services); ConfigureSwaggerServices(context.Services);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -81,7 +81,7 @@ namespace Acme.BookStore.Web
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>

2
samples/DashboardDemo/src/DashboardDemo.Domain.Shared/DashboardDemoDomainSharedModule.cs

@ -16,7 +16,7 @@ namespace DashboardDemo
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/DashboardDemo/src/DashboardDemo.Domain/DashboardDemoDomainModule.cs

@ -16,7 +16,7 @@ namespace DashboardDemo
[DependsOn( [DependsOn(
typeof(DashboardDemoDomainSharedModule), typeof(DashboardDemoDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

2
samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/DashboardDemoMigrationsDbContextFactory.cs

@ -19,7 +19,7 @@ namespace DashboardDemo.EntityFrameworkCore
return new DashboardDemoMigrationsDbContext(builder.Options); return new DashboardDemoMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore/EntityFrameworkCore/DashboardDemoEntityFrameworkCoreModule.cs

@ -20,7 +20,7 @@ namespace DashboardDemo.EntityFrameworkCore
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(BackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule) typeof(AbpFeatureManagementEntityFrameworkCoreModule)

4
samples/DashboardDemo/src/DashboardDemo.Web/DashboardDemoWebModule.cs

@ -79,7 +79,7 @@ namespace DashboardDemo.Web
ConfigureSwaggerServices(context.Services); ConfigureSwaggerServices(context.Services);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -87,7 +87,7 @@ namespace DashboardDemo.Web
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>

Loading…
Cancel
Save