11 references to DataProtectionOptions
Microsoft.AspNetCore.Antiforgery (2)
Internal\AntiforgeryOptionsSetup.cs (2)
14private readonly DataProtectionOptions _dataProtectionOptions; 16public AntiforgeryOptionsSetup(IOptions<DataProtectionOptions> dataProtectionOptions)
Microsoft.AspNetCore.DataProtection (8)
DataProtectionBuilderExtensions.cs (2)
37/// This API corresponds to setting the <see cref="DataProtectionOptions.ApplicationDiscriminator"/> property 44builder.Services.Configure<DataProtectionOptions>(options =>
DataProtectionServiceCollectionExtensions.cs (4)
47/// <param name="setupAction">An <see cref="Action{DataProtectionOptions}"/> to configure the provided <see cref="DataProtectionOptions"/>.</param> 49public static IDataProtectionBuilder AddDataProtection(this IServiceCollection services, Action<DataProtectionOptions> setupAction) 73ServiceDescriptor.Transient<IConfigureOptions<DataProtectionOptions>, DataProtectionOptionsSetup>()); 85var dpOptions = s.GetRequiredService<IOptions<DataProtectionOptions>>();
Internal\DataProtectionOptionsSetup.cs (2)
9internal sealed class DataProtectionOptionsSetup : IConfigureOptions<DataProtectionOptions> 18public void Configure(DataProtectionOptions options)
Microsoft.AspNetCore.DataProtection.Tests (1)
ServiceCollectionTests.cs (1)
26Assert.NotNull(services.GetService<IOptions<DataProtectionOptions>>());