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

◆ ServiceAttribute()

Sisus.Init.ServiceAttribute.ServiceAttribute ( params Type[] definingTypes)

Classes that have the ServiceAttribute can provide services for one or more client objects.

A single instance of each class that has the attribute will automatically get cached behind the scenes making them ready for clients to retrieve as needed.

A fresh instance of the service will be created unless ResourcePath or AddressableKey is used to specify a location from which an existing instance of the service can be loaded.

Parameters
definingTypesClass or interface types that can be used to retrieve an instance of it.

These should be interfaces that the service implement, bases type that the service derives from, or the exact type of the service.