1 write to ParserType
Microsoft.AspNetCore.HeaderParsing (1)
HeaderSetup.cs (1)
47ParserType = Throw.IfNull(parserType);
21 references to ParserType
Microsoft.AspNetCore.HeaderParsing (2)
HeaderRegistry.cs (1)
30var 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)
17Assert.Null(CommonHeaders.Host.ParserType); 25Assert.Null(CommonHeaders.Accept.ParserType); 33Assert.Null(CommonHeaders.AcceptEncoding.ParserType); 41Assert.Null(CommonHeaders.AcceptLanguage.ParserType); 49Assert.Null(CommonHeaders.CacheControl.ParserType); 57Assert.Null(CommonHeaders.ContentDisposition.ParserType); 65Assert.Null(CommonHeaders.ContentType.ParserType); 73Assert.Null(CommonHeaders.Cookie.ParserType); 81Assert.Null(CommonHeaders.Date.ParserType); 89Assert.Null(CommonHeaders.IfMatch.ParserType); 97Assert.Null(CommonHeaders.IfModifiedSince.ParserType); 105Assert.Null(CommonHeaders.IfNoneMatch.ParserType); 113Assert.Null(CommonHeaders.IfRange.ParserType); 121Assert.Null(CommonHeaders.IfUnmodifiedSince.ParserType); 129Assert.Null(CommonHeaders.Range.ParserType); 137Assert.Null(CommonHeaders.Referer.ParserType); 145Assert.Null(CommonHeaders.XForwardedFor.ParserType);
HeaderSetupTests.cs (2)
21Assert.Null(sut.ParserType); 30Assert.Equal(typeof(DateTimeOffsetParser), sut.ParserType);