Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ InitTargetAsync()

Task< TService > Sisus.Init.ServiceInitializerAsync< TService, TArgument >.InitTargetAsync ( TArgument argument)
abstract

Returns an Awaitable<TService> that can be awaited to get a new instance of the TService class, or null.

If the task has a result of null, it tells the framework that it should handle creating the instance internally.

If more control is needed, this method can be implemented to take over control of the creation of the service object from the framework.

Returns
A task containing an instance of the TService class, or null if the framework should create the instance automatically.

Implements Sisus.Init.IServiceInitializerAsync< TService, in TArgument >.