1 implementation of Services
Microsoft.AspNetCore.DataProtection (1)
Internal\DataProtectionBuilder.cs (1)
26public IServiceCollection Services { get; }
38 references to Services
CustomEncryptorSample (2)
CustomBuilderExtensions.cs (1)
18builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(serviceProvider =>
Program.cs (1)
20.Services.BuildServiceProvider())
EntityFrameworkCoreSample (1)
Program.cs (1)
30.Services
Microsoft.AspNetCore.DataProtection (18)
DataProtectionBuilderExtensions.cs (18)
44builder.Services.Configure<DataProtectionOptions>(options => 66builder.Services.Configure<KeyManagementOptions>(options => 88builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 114builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 137builder.Services.Configure(setupAction); 154builder.Services.Configure<KeyManagementOptions>(options => 173builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 197builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 220builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 229builder.Services.Configure<XmlKeyDecryptionOptions>(o => o.AddKeyDecryptionCertificate(certificate)); 253builder.Services.TryAddSingleton<ICertificateResolver, CertificateResolver>(); 255builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 278builder.Services.Configure<XmlKeyDecryptionOptions>(o => 326builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 380builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services => 410builder.Services.Configure<KeyManagementOptions>(options => 499builder.Services.Configure<KeyManagementOptions>(options => 521builder.Services.Replace(ServiceDescriptor.Singleton<IDataProtectionProvider, EphemeralDataProtectionProvider>());
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreDataProtectionExtensions.cs (1)
27builder.Services.AddSingleton<IConfigureOptions<KeyManagementOptions>>(services =>
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionProviderTests.cs (1)
61builder.Services.AddSingleton<IKeyManager>(s =>
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
RedisDataProtectionBuilderExtensions.cs (1)
61builder.Services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.DataProtection.Tests (13)
DataProtectionUtilityExtensionsTests.cs (4)
36.Services 67.Services 95.Services 118.Services
HostingTests.cs (3)
32.Services 58.Services 87.Services
ServiceCollectionTests.cs (6)
23.Services 35.Services 40.Services 54.Services; 85.Services 118.Services
Redis (1)
Program.cs (1)
23.Services