AddServerTimingOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Diagnostics
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
AddServerTimingOptions(IServiceCollection, Action<ServerTimingOptions>)
Registers the specified setup to configure ServerTimingOptions in the services collection.
public static IServiceCollection AddServerTimingOptions(this IServiceCollection services, Action<ServerTimingOptions> setup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
setupAction<ServerTimingOptions>The ServerTimingOptions that may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional configuration calls can be chained.
Exceptions
- ArgumentException
setupfailed to configure an instance of ServerTimingOptions in a valid state.