testing use of redis backend

This commit is contained in:
Ryan Peters 2024-01-16 22:24:24 -05:00
parent 9d92cd47e1
commit 03968bb11f
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="8.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.15.1" /> <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.15.1" />
<PackageReference Include="StackExchange.Redis" Version="2.7.17" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -21,7 +21,7 @@ namespace BinaryDad.Coding
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
services.AddMvc(); services.AddMvc();
services.AddSignalR(); services.AddSignalR().AddStackExchangeRedis("redis-service:6379");
services.AddHttpsRedirection(options => services.AddHttpsRedirection(options =>
{ {