Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IInitializer Interface Reference

Description

Represents an object that can can specify the arguments used to initialize an object that implements one of the IInitializable<> interfaces.

Base interface for all generic IInitializer<,> interfaces, which should be implemented by all Initializer classes.

Inheritance diagram for Sisus.Init.IInitializer:
Sisus.Init.IInitializer< TClient > Sisus.Init.IInitializer< TClient, TArgument > Sisus.Init.IInitializer< TClient, TFirstArgument, TSecondArgument > Sisus.Init.IInitializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument > Sisus.Init.IInitializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > Sisus.Init.IInitializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IInitializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument >

Public Member Functions

bool TargetIsAssignableOrConvertibleToType (Type type)
 Gets a value indicating whether an object of the given type can be assigned to the Target property directly, or if type implements IValueProvider<T>, IValueByTypeProvider or IValueByTypeProviderAsync.
 
object InitTarget ()
 Initializes the client object with the arguments specified by this initializer.
 
System.Threading.Tasks.Task< object > InitTargetAsync ()
 Initializes the client object asynchronously with the arguments specified by this initializer.
 

Properties

Object Target [get, set]
 Existing target instance to initialize, if any.
 
bool ProvidesCustomInitArguments [get]
 Gets a value indicating whether this initializer is able to provide custom per-instance Init arguments for its client.