5 references to CreateProtector
Microsoft.AspNetCore.DataProtection.Abstractions (3)
DataProtectionCommonExtensions.cs (3)
82
protector = protector?.
CreateProtector
((IEnumerable<string>)subPurposes);
117
/// then <see cref="
CreateProtector
(IDataProtectionProvider, IEnumerable{string})"/>. See those methods'
125
return services.GetDataProtectionProvider().
CreateProtector
(purposes);
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (2)
DataProtectionCommonExtensionsTests.cs (2)
30
testCode: () => provider.
CreateProtector
((IEnumerable<string>)purposes),
66
var retVal = firstMock.Object.
CreateProtector
((IEnumerable<string>)new string[] { "first", "second", "third" });