7 references to TryRedact
Microsoft.Extensions.Compliance.Abstractions.Tests (6)
Redaction\RedactorTest.cs (6)
23
Assert.True(r.
TryRedact
<object?>(null, new char[0], out _, string.Empty.AsSpan()));
248
Assert.Equal(success, r.
TryRedact
(data, buffer, out int charsWritten, string.Empty.AsSpan(), null));
266
Assert.Equal(success, r.
TryRedact
(data, buffer, out int charsWritten, string.Empty.AsSpan(), null));
284
Assert.Equal(success, r.
TryRedact
(data, buffer, out int charsWritten, "R".AsSpan(), null));
298
Assert.True(r.
TryRedact
(Array.Empty<char>(), buffer, out int charsWritten, string.Empty.AsSpan(), null));
314
Assert.True(r.
TryRedact
(new char[0], buffer, out int charsWritten, string.Empty.AsSpan(), null));
Microsoft.Extensions.Telemetry (1)
Logging\JustInTimeRedactor.cs (1)
65
return _redactor!.
TryRedact
(_value, destination, out charsWritten, format, provider);