7 references to GetDataProtector
CustomEncryptorSample (1)
Program.cs (1)
22var protector = services.GetDataProtector("SamplePurpose");
EntityFrameworkCoreSample (1)
Program.cs (1)
36var protector = services.GetDataProtector("sample-purpose");
KeyManagementSample (1)
Program.cs (1)
30services.GetDataProtector("Sample.KeyManager.v1").Protect("payload");
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (3)
DataProtectionCommonExtensionsTests.cs (3)
170testCode: () => services.GetDataProtector("primary-purpose", subPurposes), 217var retVal = services.GetDataProtector("first", "second", "third"); 237var retVal = services.GetDataProtector("first", subPurposes);
Redis (1)
Program.cs (1)
27var protector = services.GetDataProtector("sample-purpose");