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. 45o.LoggingFields |= HttpLoggingFields.Duration;
Microsoft.AspNetCore.HttpLogging (5)
HttpLoggingFields.cs (2)
192/// Includes <see cref="Request"/>, <see cref="Response"/>, and <see cref="Duration"/>. 201All = Request | Response | Duration
HttpLoggingMiddleware.cs (3)
231if (logContext.IsAnyEnabled(HttpLoggingFields.Duration)) 233logContext.AddParameter(nameof(HttpLoggingFields.Duration), logContext.GetDuration()); 259if (logContext.IsAnyEnabled(HttpLoggingFields.Duration))
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
861options.CurrentValue.LoggingFields = HttpLoggingFields.Duration; 1562if (fields.HasFlag(HttpLoggingFields.Duration))