如果SignalR不为null,则使用IAppBuilder.Properties [“
security.DataProtectionProvider”]中的IDataProtectionProvider。
在调用MapSignalR之前,可以在Startup.Configuration中用您自己的IDataProtectionProvider替换它。
通过提供您自己的IDataProtectionProvider,可以确保每个工作角色使用相同的密钥来保护/取消保护。

如果SignalR不为null,则使用IAppBuilder.Properties [“
security.DataProtectionProvider”]中的IDataProtectionProvider。
在调用MapSignalR之前,可以在Startup.Configuration中用您自己的IDataProtectionProvider替换它。
通过提供您自己的IDataProtectionProvider,可以确保每个工作角色使用相同的密钥来保护/取消保护。