2 references to Protect
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\ServerComponentSerializer.cs (1)
45var protectedBytes = _dataProtector.Protect(serializedServerComponentBytes, ServerComponentSerializationSettings.DataExpiration);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionAdvancedExtensionsTests.cs (1)
71byte[] protectedPayload = mockDataProtector.Object.Protect(new byte[] { 0x11, 0x22, 0x33 }, TimeSpan.FromHours(48));