1 write to ParserType
Microsoft.AspNetCore.HeaderParsing (1)
HeaderSetup.cs (1)
47
ParserType
= Throw.IfNull(parserType);
21 references to ParserType
Microsoft.AspNetCore.HeaderParsing (2)
HeaderRegistry.cs (1)
30
var parser = setup.ParserInstance ?? (HeaderParser<T>)_provider.GetRequiredService(setup.
ParserType
!);
HeaderSetup.cs (1)
30
/// <remarks>Not <see langword="null"/> when <see cref="
ParserType
" /> is <see langword="null"/> and vice versa.</remarks>
Microsoft.AspNetCore.HeaderParsing.Tests (19)
CommonHeadersTests.cs (17)
17
Assert.Null(CommonHeaders.Host.
ParserType
);
25
Assert.Null(CommonHeaders.Accept.
ParserType
);
33
Assert.Null(CommonHeaders.AcceptEncoding.
ParserType
);
41
Assert.Null(CommonHeaders.AcceptLanguage.
ParserType
);
49
Assert.Null(CommonHeaders.CacheControl.
ParserType
);
57
Assert.Null(CommonHeaders.ContentDisposition.
ParserType
);
65
Assert.Null(CommonHeaders.ContentType.
ParserType
);
73
Assert.Null(CommonHeaders.Cookie.
ParserType
);
81
Assert.Null(CommonHeaders.Date.
ParserType
);
89
Assert.Null(CommonHeaders.IfMatch.
ParserType
);
97
Assert.Null(CommonHeaders.IfModifiedSince.
ParserType
);
105
Assert.Null(CommonHeaders.IfNoneMatch.
ParserType
);
113
Assert.Null(CommonHeaders.IfRange.
ParserType
);
121
Assert.Null(CommonHeaders.IfUnmodifiedSince.
ParserType
);
129
Assert.Null(CommonHeaders.Range.
ParserType
);
137
Assert.Null(CommonHeaders.Referer.
ParserType
);
145
Assert.Null(CommonHeaders.XForwardedFor.
ParserType
);
HeaderSetupTests.cs (2)
21
Assert.Null(sut.
ParserType
);
30
Assert.Equal(typeof(DateTimeOffsetParser), sut.
ParserType
);