Resolves a single component instance that implements a given service type.
Namespace:
Gallio.Runtime.ExtensibilityAssembly: Gallio (in Gallio.dll) Version: 3.2.0.0 (3.2.528.0)
Syntax
| C# |
|---|
TService Resolve<TService>()
|
| Visual Basic (Declaration) |
|---|
Function Resolve(Of TService) As TService |
Type Parameters
- TService
- The service type.
Return Value
The component instance that implements the service.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Runtime..::.RuntimeException | Thrown if no component was found or if a component could not be resolved. |
