|
|
@ -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 => |
|
|
|