Table of Contents

Class ServiceCollectionExtensions

Namespace
DotBahn.Timetables
Assembly
DotBahn.Timetables.dll

Extension methods for registering the DotBahn Timetables client.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddDotBahnTimetables(IServiceCollection, Action<ClientOptions>?)

Registers the ITimetableClient with its parser, transformer, and merger services.

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