21 references to MediaTypeOptions
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Logging\AcceptanceTests.cs (6)
164
x.
MediaTypeOptions
.Clear();
165
x.
MediaTypeOptions
.AddText(responseContentTypeToLog);
224
x.
MediaTypeOptions
.Clear();
225
x.
MediaTypeOptions
.AddText("text/*");
283
x.
MediaTypeOptions
.AddText(MediaTypeNames.Text.Plain);
599
x.
MediaTypeOptions
.AddText(MediaTypeNames.Text.Plain);
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingMiddleware.cs (1)
160
options.
MediaTypeOptions
.MediaTypeStates,
ResponseBufferingStream.cs (1)
129
_options.
MediaTypeOptions
.MediaTypeStates, out _encoding))
Microsoft.AspNetCore.HttpLogging.Tests (13)
HttpLoggingMiddlewareTests.cs (6)
603
options.CurrentValue.
MediaTypeOptions
.Clear();
604
options.CurrentValue.
MediaTypeOptions
.AddText("text/plain", encoding);
641
options.CurrentValue.
MediaTypeOptions
.Clear();
642
options.CurrentValue.
MediaTypeOptions
.AddText("text/plain", encoding);
680
options.CurrentValue.
MediaTypeOptions
.Clear();
681
options.CurrentValue.
MediaTypeOptions
.AddText("text/plain", encoding);
HttpLoggingOptionsTests.cs (7)
12
var defaultMediaTypes = options.
MediaTypeOptions
.MediaTypeStates;
26
options.
MediaTypeOptions
.AddText("test/*");
28
var defaultMediaTypes = options.
MediaTypeOptions
.MediaTypeStates;
38
options.
MediaTypeOptions
.AddText("test/*; charset=ascii");
40
var defaultMediaTypes = options.
MediaTypeOptions
.MediaTypeStates;
50
options.
MediaTypeOptions
.Clear();
51
Assert.Empty(options.
MediaTypeOptions
.MediaTypeStates);