1 instantiation of ErasingRedactor
Microsoft.Extensions.Compliance.Redaction (1)
ErasingRedactor.cs (1)
16public static ErasingRedactor Instance { get; } = new();
19 references to ErasingRedactor
Microsoft.Extensions.Compliance.Redaction (4)
ErasingRedactor.cs (2)
14/// Gets the singleton instance of <see cref="ErasingRedactor"/>. 16public static ErasingRedactor Instance { get; } = new();
RedactionBuilder.cs (1)
29Services.TryAddEnumerable(ServiceDescriptor.Singleton<Redactor>(ErasingRedactor.Instance));
RedactorProviderOptions.cs (1)
18public Type FallbackRedactor { get; set; } = typeof(ErasingRedactor);
Microsoft.Extensions.Compliance.Redaction.Tests (13)
ErasingRedactorTests.cs (4)
14Redactor redactor = ErasingRedactor.Instance; 27Redactor redactor = ErasingRedactor.Instance; 41Redactor redactor = ErasingRedactor.Instance; 55var e = ErasingRedactor.Instance.Redact("any");
RedactorProviderTests.cs (9)
17redactors: [ErasingRedactor.Instance], 29redactors: new Redactor[] { ErasingRedactor.Instance, NullRedactor.Instance }, 44opt.Redactors.Add(_dataClassification1, typeof(ErasingRedactor)); 48redactors: new Redactor[] { ErasingRedactor.Instance, NullRedactor.Instance }, 56Assert.IsType<ErasingRedactor>(r1); 58Assert.IsType<ErasingRedactor>(r3); 99Assert.Equal(typeof(ErasingRedactor), r3.GetType()); 106redactors: new Redactor[] { ErasingRedactor.Instance, new FakePlaintextRedactor() }, 129ErasingRedactor.Instance,
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Benchmarks\ErasingRedactorProvider.cs (1)
13public Redactor GetRedactor(DataClassificationSet classifications) => ErasingRedactor.Instance;
Microsoft.Extensions.Telemetry.PerformanceTests (1)
ExtendedLoggerBench.cs (1)
73serviceCollection.AddRedaction(builder => builder.SetFallbackRedactor<ErasingRedactor>());