|
|
@ -29,6 +29,7 @@ using Volo.Abp.Caching.StackExchangeRedis; |
|
|
using Volo.Abp.Localization; |
|
|
using Volo.Abp.Localization; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Swashbuckle; |
|
|
using Volo.Abp.Swashbuckle; |
|
|
|
|
|
using Volo.Abp.Timing; |
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
|
|
|
|
|
namespace EventHub.Admin |
|
|
namespace EventHub.Admin |
|
|
@ -61,6 +62,7 @@ namespace EventHub.Admin |
|
|
ConfigureCookies(context); |
|
|
ConfigureCookies(context); |
|
|
ConfigureSwaggerServices(context, configuration); |
|
|
ConfigureSwaggerServices(context, configuration); |
|
|
ConfigureBackgroundJobs(); |
|
|
ConfigureBackgroundJobs(); |
|
|
|
|
|
ConfigureTiming(); |
|
|
ConfigureAutoApiControllers(); |
|
|
ConfigureAutoApiControllers(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -85,6 +87,11 @@ namespace EventHub.Admin |
|
|
{ |
|
|
{ |
|
|
Configure<AbpDistributedCacheOptions>(options => { options.KeyPrefix = "EventHub:"; }); |
|
|
Configure<AbpDistributedCacheOptions>(options => { options.KeyPrefix = "EventHub:"; }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void ConfigureTiming() |
|
|
|
|
|
{ |
|
|
|
|
|
Configure<AbpClockOptions>(options => { options.Kind = DateTimeKind.Utc; }); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void ConfigureVirtualFileSystem(ServiceConfigurationContext context) |
|
|
private void ConfigureVirtualFileSystem(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
|