File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1414 <PackageReference Include =" Hangfire.AspNetCore" Version =" 1.8.21" />
1515 <PackageReference Include =" Hangfire.Dashboard.BasicAuthorization" Version =" 1.0.2" />
1616 <PackageReference Include =" Hangfire.Redis.StackExchange" Version =" 1.12.0" />
17+ <PackageReference Include =" Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version =" 10.0.0" />
1718 <PackageReference Include =" Microsoft.Data.SqlClient" Version =" 5.1.5" />
1819 <PackageReference Include =" Highsoft.Highcharts" Version =" 11.4.6.5" />
1920 <PackageReference Include =" Highsoft.Highstock" Version =" 11.4.6.5" />
Original file line number Diff line number Diff line change 11using CFLookup ;
2+ using Microsoft . AspNetCore . DataProtection ;
23#if ! DEBUG
34using CFLookup . Jobs ;
45using Hangfire ;
@@ -100,6 +101,10 @@ private static async Task Main(string[] args)
100101 var redis = ConnectionMultiplexer . Connect ( redisServer ) ;
101102
102103 builder . Services . AddSingleton ( redis ) ;
104+
105+ builder . Services . AddDataProtection ( )
106+ . PersistKeysToStackExchangeRedis ( redis , "CFLookup-DataProtection-Keys" ) ;
107+
103108
104109 builder . Services . AddScoped ( x => new SqlConnection ( dbConnectionString ) ) ;
105110
You can’t perform that action at this time.
0 commit comments