Resolves a single component instance that implements a given service type.
Namespace:
Gallio.Runtime.ExtensibilityAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
Object Resolve( Type serviceType ) |
| Visual Basic (Declaration) |
|---|
Function Resolve ( _ serviceType As Type _ ) As Object |
Parameters
- serviceType
- Type: System..::.Type
The service type.
Return Value
The component instance that implements the service.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if serviceType is null. |
| Gallio.Runtime..::.RuntimeException | Thrown if no component was found or if a component could not be resolved. |
