Table of Contents

Class TimeZoneContextContainerExtension

Namespace
Arc4u.Dependency
Assembly
Arc4u.dll

Extension methods to initialize the TimeZoneContext.

public static class TimeZoneContextContainerExtension
Inheritance
TimeZoneContextContainerExtension
Inherited Members

Methods

InitializeTimeZoneContext(IServiceProvider)

Initializes the TimeZoneContext by resolving it from the service provider, which makes Current available. The ApplicationConfig options must be registered (see AddApplicationConfig).

public static void InitializeTimeZoneContext(this IServiceProvider app)

Parameters

app IServiceProvider

The service provider.

Examples

var app = builder.Build();
app.Services.InitializeTimeZoneContext();