ElmServiceCollectionExtensions.AddElm ElmServiceCollectionExtensions.AddElm ElmServiceCollectionExtensions.AddElm Method

Definition

Overloads

AddElm(IServiceCollection) AddElm(IServiceCollection) AddElm(IServiceCollection)

Adds error logging middleware services to the specified IServiceCollection.

AddElm(IServiceCollection, Action<ElmOptions>) AddElm(IServiceCollection, Action<ElmOptions>) AddElm(IServiceCollection, Action<ElmOptions>)

Adds error logging middleware services to the specified IServiceCollection.

AddElm(IServiceCollection) AddElm(IServiceCollection) AddElm(IServiceCollection)

Adds error logging middleware services to the specified IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddElm (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddElm : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddElm (services As IServiceCollection) As IServiceCollection

Parameters

Returns

The IServiceCollection so that additional calls can be chained.

AddElm(IServiceCollection, Action<ElmOptions>) AddElm(IServiceCollection, Action<ElmOptions>) AddElm(IServiceCollection, Action<ElmOptions>)

Adds error logging middleware services to the specified IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddElm (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Diagnostics.Elm.ElmOptions> setupAction);
static member AddElm : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Diagnostics.Elm.ElmOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddElm (services As IServiceCollection, setupAction As Action(Of ElmOptions)) As IServiceCollection

Parameters

setupAction
Action<ElmOptions>

An Action<T> to configure the provided ElmOptions.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to