3 references to Protect
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\Components\ServerComponentSerializer.cs (1)
52
var protectedBytes = _dataProtector.
Protect
(serializedServerComponentBytes, dataExpiration);
Microsoft.AspNetCore.Components.Server (1)
src\Shared\Components\ServerComponentSerializer.cs (1)
52
var protectedBytes = _dataProtector.
Protect
(serializedServerComponentBytes, dataExpiration);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionAdvancedExtensionsTests.cs (1)
71
byte[] protectedPayload = mockDataProtector.Object.
Protect
(new byte[] { 0x11, 0x22, 0x33 }, TimeSpan.FromHours(48));