Table of Contents

Class ServiceCollectionExtensions

Namespace
DotBahn.Facilities
Assembly
DotBahn.Facilities.dll

Extension methods for registering the DotBahn Facilities client.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddDotBahnFacilities(IServiceCollection, Action<ClientOptions>?)

Registers the IFacilityClient with its parser and transformer services.

public static IServiceCollection AddDotBahnFacilities(this IServiceCollection services, Action<ClientOptions>? configuration = null)

Parameters

services IServiceCollection

The service collection to add to.

configuration Action<ClientOptions>

Optional action to override default client options.

Returns

IServiceCollection

The service collection for chaining.