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

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

ExceptionCondition
System..::.ArgumentNullExceptionThrown if serviceType is null.
Gallio.Runtime..::.RuntimeExceptionThrown if no component was found or if a component could not be resolved.

See Also