Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IServiceInitializer< out TService > Interface Template Reference

Description

Represents an initializer that specifies how a service of type TService should be initialized.

Implemented by initializers of services that are initialized automatically by the framework or services that don't depend on any other services and are initialized manually via the InitTarget method.

Template Parameters
TServiceThe concrete type of the initialized service.
Inheritance diagram for Sisus.Init.IServiceInitializer< out TService >:
Sisus.Init.IServiceInitializer Sisus.Init.ServiceInitializer< TService >

Public Member Functions

TService InitTarget ()
 Returns a new instance of the TService class, or null.
 
object IServiceInitializer. InitTarget (params object[] arguments)
 Returns a new instance of the service class, a UnityEngine.Awaitable<T> that returns a new instance of the service class asynchronously, or null.