Resolves a handle for a single component that implements a given service type.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.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

ExceptionCondition
Gallio.Runtime..::.RuntimeExceptionThrown if no component was found or if a component could not be resolved.

See Also