Resolves a single component instance that implements a given service type.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  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

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

See Also