Resolves a handle for a single component 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# |
|---|
ComponentHandle<TService, TTraits> ResolveHandle<TService, TTraits>() where TTraits : Traits |
| Visual Basic (Declaration) |
|---|
Function ResolveHandle(Of TService, TTraits As Traits) As ComponentHandle(Of TService, TTraits) |
Type Parameters
- TService
- The service type.
- TTraits
- The traits type.
Return Value
The handle for the component that implements the service.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Runtime..::.RuntimeException | Thrown if no component was found or if a component could not be resolved. |
