Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.Service< TService > Class Template Reference

Description

Class that can act as a container for a globally shared instance of any class that has the ServiceAttribute on demand.

Template Parameters
TServiceThe defining type of the service class, which is the type specified in its ServiceAttribute, or - if no other type has been explicitly specified - the exact type of the service class.

This type must be an interface that the service implements, a base type that the service derives from, or the exact type of the service.

See also
Service.Get<TService>

Static Public Attributes

static TService Instance = default
 The shared instance of service of type TService .