36 instantiations of EphemeralDataProtectionProvider
Microsoft.AspNetCore.Authentication.Test (23)
FacebookTests.cs (1)
316var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("FacebookTest"));
GoogleTests.cs (14)
159var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 211var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 263var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 534var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 590var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 644var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 694var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 736var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 771var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 831var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 860var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 904var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 948var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest")); 985var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("GoogleTest"));
MicrosoftAccountTests.cs (2)
188var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("MsftTest")); 258var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("MicrosoftTest"));
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
182var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("OIDCTest")); 212var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("OIDCTest"));
OpenIdConnect\OpenIdConnectTests.cs (2)
228var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("OIDCTest")); 260var stateFormat = new PropertiesDataFormat(new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("OIDCTest"));
TwitterTests.cs (2)
386var stateFormat = new SecureDataFormat<RequestToken>(new RequestTokenSerializer(), new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("TwitterTest")); 455var stateFormat = new SecureDataFormat<RequestToken>(new RequestTokenSerializer(), new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("TwitterTest"));
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
39private static readonly IDataProtectionProvider _dataprotectorProvider = new EphemeralDataProtectionProvider();
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\CircuitHostTest.cs (1)
21private readonly IDataProtectionProvider _ephemeralDataProtectionProvider = new EphemeralDataProtectionProvider();
Circuits\ComponentHubTest.cs (1)
105var ephemeralDataProtectionProvider = new EphemeralDataProtectionProvider();
Circuits\RemoteRendererTest.cs (1)
30private readonly IDataProtectionProvider _ephemeralDataProtectionProvider = new EphemeralDataProtectionProvider();
Circuits\ServerComponentDeserializerTest.cs (1)
19_ephemeralDataProtectionProvider = new EphemeralDataProtectionProvider();
Circuits\TestCircuitIdFactory.cs (1)
12return new CircuitIdFactory(new EphemeralDataProtectionProvider());
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
TimeLimitedDataProtectorTests.cs (1)
155var ephemeralProtector = new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("my purpose");
Microsoft.AspNetCore.DataProtection.Tests (4)
EphemeralDataProtectionProviderTests.cs (4)
16var dataProtector1 = new EphemeralDataProtectionProvider().CreateProtector("purpose"); 17var dataProtector2 = new EphemeralDataProtectionProvider(NullLoggerFactory.Instance).CreateProtector("purpose"); 33var dataProtectionProvider = new EphemeralDataProtectionProvider(NullLoggerFactory.Instance); 50var dataProtectionProvider = new EphemeralDataProtectionProvider(NullLoggerFactory.Instance);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
PersistComponentStateTagHelperTest.cs (1)
29new EphemeralDataProtectionProvider();
ProtectedPrerenderComponentApplicationStateTest.cs (1)
14private static readonly IDataProtectionProvider _provider = new EphemeralDataProtectionProvider();
16 references to EphemeralDataProtectionProvider
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
105var ephemeralDataProtectionProvider = new EphemeralDataProtectionProvider();
Microsoft.AspNetCore.DataProtection (4)
DataProtectionBuilderExtensions.cs (2)
508/// Configures the data protection system to use the <see cref="EphemeralDataProtectionProvider"/> 521builder.Services.Replace(ServiceDescriptor.Singleton<IDataProtectionProvider, EphemeralDataProtectionProvider>());
EphemeralDataProtectionProvider.cs (2)
23/// Payloads generated by a given <see cref="EphemeralDataProtectionProvider"/> instance can only 60var logger = loggerFactory.CreateLogger<EphemeralDataProtectionProvider>();
Microsoft.AspNetCore.DataProtection.Tests (2)
EphemeralDataProtectionProviderTests.cs (2)
33var dataProtectionProvider = new EphemeralDataProtectionProvider(NullLoggerFactory.Instance); 50var dataProtectionProvider = new EphemeralDataProtectionProvider(NullLoggerFactory.Instance);
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3510services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>(); 3660services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
SqlStoreTestBase.cs (1)
55services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
43services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
UserManagerSpecificationTests.cs (1)
56services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (1)
67services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
VersionStartup.cs (1)
30services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
74services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
101services.AddSingleton<IDataProtectionProvider, EphemeralDataProtectionProvider>();