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

◆ Set< TClient, TArgument >()

static void Sisus.Init.InitArgs.Set< TClient, TArgument > ( TArgument argument)
static

Provides an argument for use with initializing a client of type TClient .

The argument can be retrieved by the initializing object during any phase of initialization using the TryGet<TClient, TArgument> function.

Once the argument has been received it can be cleared from the temporary argument cache using Clear<TClient, TArgument>.

The TClient must implement the IArgs<TArgument> interface in order for it to be used with this function.

Template Parameters
TClientThe type of the client that will receive the argument.
TArgumentThe type of the argument.
Parameters
argumentThe argument provided for the TClient .
Type Constraints
TClient :IArgs<TArgument>