17 references to Throw
Microsoft.Extensions.Compliance.Redaction (17)
HmacRedactor.cs (2)
45
var value =
Throw
.IfMemberNull(options, options?.Value);
73
Throw
.IfBufferTooSmall(destination.Length, length, nameof(destination));
RedactionBuilder.cs (2)
27
Services =
Throw
.IfNull(services);
36
_ =
Throw
.IfNull(classifications);
RedactionExtensions.cs (6)
27
_ =
Throw
.IfNull(builder);
28
_ =
Throw
.IfNull(configure);
29
_ =
Throw
.IfNull(classifications);
49
_ =
Throw
.IfNull(builder);
50
_ =
Throw
.IfNull(section);
51
_ =
Throw
.IfNull(classifications);
RedactionServiceCollectionExtensions.cs (3)
23
=>
Throw
.IfNull(services).AddRedaction(_ => { });
35
_ =
Throw
.IfNull(services);
36
_ =
Throw
.IfNull(configure);
RedactorProvider.cs (1)
22
var value =
Throw
.IfMemberNull(options, options.Value);
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
88
_ =
Throw
.IfNullOrWhitespace(min);
101
_ =
Throw
.IfNullOrWhitespace(min);
102
_ =
Throw
.IfNullOrWhitespace(max);