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