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
appIServiceProviderThe service provider.
Examples
var app = builder.Build();
app.Services.InitializeTimeZoneContext();