Browse Source
Merge pull request #1385 from abpframework/maliming/redis
Resolve #1382 Use the new Redis package.
pull/1394/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with
39 additions and
159 deletions
-
samples/MicroserviceDemo/applications/AuthServer.Host/AuthServer.Host.csproj
-
samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs
-
samples/MicroserviceDemo/applications/BackendAdminApp.Host/BackendAdminApp.Host.csproj
-
samples/MicroserviceDemo/applications/BackendAdminApp.Host/BackendAdminAppHostModule.cs
-
samples/MicroserviceDemo/applications/PublicWebSite.Host/PublicWebSite.Host.csproj
-
samples/MicroserviceDemo/applications/PublicWebSite.Host/PublicWebSiteHostModule.cs
-
samples/MicroserviceDemo/gateways/BackendAdminAppGateway.Host/BackendAdminAppGateway.Host.csproj
-
samples/MicroserviceDemo/gateways/BackendAdminAppGateway.Host/BackendAdminAppGatewayHostModule.cs
-
samples/MicroserviceDemo/gateways/InternalGateway.Host/InternalGateway.Host.csproj
-
samples/MicroserviceDemo/gateways/InternalGateway.Host/InternalGatewayHostModule.cs
-
samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGateway.Host.csproj
-
samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGatewayHostModule.cs
-
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj
-
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs
-
samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityService.Host.csproj
-
samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs
-
samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj
-
samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs
-
templates/mvc-module/host/MyCompanyName.MyProjectName.HttpApi.Host/MyCompanyName.MyProjectName.HttpApi.Host.csproj
-
templates/mvc-module/host/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs
-
templates/mvc-module/host/MyCompanyName.MyProjectName.IdentityServer/MyCompanyName.MyProjectName.IdentityServer.csproj
-
templates/mvc-module/host/MyCompanyName.MyProjectName.IdentityServer/MyProjectNameIdentityServerModule.cs
-
templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Host/MyCompanyName.MyProjectName.Web.Host.csproj
-
templates/mvc-module/host/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebHostModule.cs
-
templates/mvc/src/MyCompanyName.MyProjectName.HttpApi.Host/MyCompanyName.MyProjectName.HttpApi.Host.csproj
-
templates/mvc/src/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs
-
templates/mvc/src/MyCompanyName.MyProjectName.IdentityServer/MyCompanyName.MyProjectName.IdentityServer.csproj
-
templates/mvc/src/MyCompanyName.MyProjectName.IdentityServer/MyProjectNameIdentityServerModule.cs
-
templates/mvc/src/MyCompanyName.MyProjectName.Web.Host/MyCompanyName.MyProjectName.Web.Host.csproj
-
templates/mvc/src/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebModule.cs
|
|
|
@ -17,8 +17,8 @@ |
|
|
|
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -42,12 +42,4 @@ |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ namespace AuthServer.Host |
|
|
|
options.Languages.Add(new LanguageInfo("en", "en", "English")); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -19,8 +19,8 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -44,12 +44,4 @@ |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -81,7 +81,7 @@ namespace BackendAdminApp.Host |
|
|
|
options.DocInclusionPredicate((docName, description) => true); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -18,8 +18,8 @@ |
|
|
|
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -64,12 +64,4 @@ |
|
|
|
<EmbeddedResource Include="wwwroot\product-images\sunny.jpg" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -73,7 +73,7 @@ namespace PublicWebSite.Host |
|
|
|
options.ClaimActions.MapAbpClaimTypes(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -20,8 +20,8 @@ |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="Ocelot" Version="13.0.0" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -53,12 +53,4 @@ |
|
|
|
</Content> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ namespace BackendAdminAppGateway.Host |
|
|
|
options.UseSqlServer(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -20,8 +20,8 @@ |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="Ocelot" Version="13.0.0" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -47,13 +47,5 @@ |
|
|
|
</Content> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -64,7 +64,7 @@ namespace InternalGateway.Host |
|
|
|
options.UseSqlServer(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -20,8 +20,8 @@ |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="Ocelot" Version="13.0.0" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -46,12 +46,4 @@ |
|
|
|
</Content> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
@ -62,7 +62,7 @@ namespace PublicWebSiteGateway.Host |
|
|
|
options.UseSqlServer(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -19,8 +19,8 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -45,12 +45,4 @@ |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ namespace BloggingService.Host |
|
|
|
options.FileUploadLocalFolder = Path.Combine(hostingEnvironment.WebRootPath, "files"); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -19,8 +19,8 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -42,12 +42,4 @@ |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -70,7 +70,7 @@ namespace IdentityService.Host |
|
|
|
options.UseSqlServer(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -19,8 +19,8 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -42,12 +42,4 @@ |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -72,7 +72,7 @@ namespace ProductService.Host |
|
|
|
options.UseSqlServer(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.MultiTenancy\Volo.Abp.AspNetCore.MultiTenancy.csproj" /> |
|
|
|
@ -47,12 +47,4 @@ |
|
|
|
</None> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -86,7 +86,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
options.ApiName = "MyProjectName"; |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Authentication.JwtBearer\Volo.Abp.AspNetCore.Authentication.JwtBearer.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.csproj" /> |
|
|
|
@ -54,12 +54,4 @@ |
|
|
|
</None> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
options.ApiName = configuration["AuthServer:ApiName"]; |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ |
|
|
|
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.Client\Volo.Abp.AspNetCore.Mvc.Client.csproj" /> |
|
|
|
@ -50,12 +50,4 @@ |
|
|
|
</None> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -183,7 +183,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
IConfigurationRoot configuration, |
|
|
|
IHostingEnvironment hostingEnvironment) |
|
|
|
{ |
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<ProjectReference Include="..\..\..\..\..\abp\framework\src\Volo.Abp.AspNetCore.MultiTenancy\Volo.Abp.AspNetCore.MultiTenancy.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\..\abp\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" /> |
|
|
|
@ -43,12 +43,4 @@ |
|
|
|
</None> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -102,7 +102,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
IConfigurationRoot configuration, |
|
|
|
IHostingEnvironment hostingEnvironment) |
|
|
|
{ |
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" /> |
|
|
|
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
@ -46,12 +46,4 @@ |
|
|
|
<ProjectReference Include="..\MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations\MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations.csproj" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -86,7 +86,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
options.IsJobExecutionEnabled = false; |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ |
|
|
|
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" /> |
|
|
|
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" /> |
|
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
@ -53,12 +53,4 @@ |
|
|
|
</None> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
|
|
|
<ItemGroup> |
|
|
|
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'"> |
|
|
|
<Aliases>signed</Aliases> |
|
|
|
</ReferencePath> |
|
|
|
</ItemGroup> |
|
|
|
</Target> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ namespace MyCompanyName.MyProjectName.Web |
|
|
|
IConfigurationRoot configuration, |
|
|
|
IHostingEnvironment hostingEnvironment) |
|
|
|
{ |
|
|
|
context.Services.AddDistributedRedisCache(options => |
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|