TimeZoneServiceExtensions Class

Extension methods for adding timezone services to the dependency injection container.

public static class TimeZoneServiceExtensions

Methods

NameDescription
AddTimeZoneServices(IServiceCollection)Adds the TimeZoneService to the service collection.

AddTimeZoneServices(IServiceCollection)

TimeZoneServiceExtensions.cs

Adds the TimeZoneService to the service collection.

public static IServiceCollection AddTimeZoneServices(this IServiceCollection services)

Parameters

services IServiceCollection
The service collection to add the service to.

Returns

IServiceCollection The service collection for method chaining.