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