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

◆ Set< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >()

static void Sisus.Init.InitArgs.Set< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ( TFirstArgument firstArgument,
TSecondArgument secondArgument,
TThirdArgument thirdArgument,
TFourthArgument fourthArgument,
TFifthArgument fifthArgument )
static

Provides five arguments for use with initializing a client of type TClient .

The arguments can be retrieved by the initializing object during any phase of initialization using the TryGet<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> function.

Once the arguments have been received it can be cleared from the temporary argument cache using Clear<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument>.

The TClient must implement the IArgs<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> interface in order for it to be used with this function.

Template Parameters
TClientThe type of the client that will receive the arguments.
TFirstArgumentThe type of the first argument.
TSecondArgumentThe type of the second argument.
TThirdArgumentThe type of the third argument.
TFourthArgumentThe type of the fourth argument.
TFifthArgumentThe type of the fifth argument.
Parameters
firstArgumentThe first argument provided for the TClient .
secondArgumentThe second argument provided for the TClient .
thirdArgumentThe third argument provided for the TClient .
fourthArgumentThe fourth argument provided for the TClient .
fifthArgumentThe fifth argument provided for the TClient .
Type Constraints
TClient :IArgs 
TClient :TFirstArgument 
TClient :TSecondArgument 
TClient :TThirdArgument 
TClient :TFourthArgument 
TClient :TFifthArgument