Table of Contents

Class ServiceCollectionExtensions

Namespace
DotBahn.Stations
Assembly
DotBahn.Stations.dll

Extension methods for registering the DotBahn Stations client.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddDotBahnStations(IServiceCollection, Action<ClientOptions>?)

Registers the IStationClient with its parser and transformer services.

public static IServiceCollection AddDotBahnStations(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.