Table of Contents

AddServerTimingOptions Method

Definition

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

services IServiceCollection

The IServiceCollection to extend.

setup Action<ServerTimingOptions>

The ServerTimingOptions that may be configured.

Returns

IServiceCollection

A reference to services so that additional configuration calls can be chained.

Exceptions

ArgumentException

setup failed to configure an instance of ServerTimingOptions in a valid state.