9 references to Duration
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\HttpLoggingServiceCollectionExtensions.cs (2)
28
/// This will enable <see cref="HttpLoggingOptions.CombineLogs"/> and <see cref="HttpLoggingFields.
Duration
"/> by default.
45
o.LoggingFields |= HttpLoggingFields.
Duration
;
Microsoft.AspNetCore.HttpLogging (5)
HttpLoggingFields.cs (2)
192
/// Includes <see cref="Request"/>, <see cref="Response"/>, and <see cref="
Duration
"/>.
201
All = Request | Response |
Duration
HttpLoggingMiddleware.cs (3)
231
if (logContext.IsAnyEnabled(HttpLoggingFields.
Duration
))
233
logContext.AddParameter(nameof(HttpLoggingFields.
Duration
), logContext.GetDuration());
259
if (logContext.IsAnyEnabled(HttpLoggingFields.
Duration
))
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
861
options.CurrentValue.LoggingFields = HttpLoggingFields.
Duration
;
1562
if (fields.HasFlag(HttpLoggingFields.
Duration
))