Initializes the runtime.
Namespace:
Gallio.RuntimeAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static IDisposable Initialize( RuntimeSetup setup, ILogger logger ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Initialize ( _ setup As RuntimeSetup, _ logger As ILogger _ ) As IDisposable |
Parameters
- setup
- Type: Gallio.Runtime..::.RuntimeSetup
The runtime setup parameters.
- logger
- Type: Gallio.Runtime.Logging..::.ILogger
The logger to attach, or null if none.
Return Value
An object that when disposed automatically calls Shutdown()()(). This is particularly useful in combination with the C# "using" statement or its equivalent.
Remarks
Loads plugins and initalizes the runtime component model. The specifics of the system can be configured by editing the appropriate *.plugin files to register new components and facilities as required.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if setup is null. |
| System..::.InvalidOperationException | Thrown if the runtime has already been initialized. |
