Class ComposableContainerAdapter
A composable container adapter.
Inheritance
System.Object
ComposableContainerAdapter
Implements
ServiceStack.Configuration.IContainerAdapter
ServiceStack.Configuration.IResolver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.ServiceStack.Composition
Assembly: Kephas.ServiceStack.dll
Syntax
public class ComposableContainerAdapter : IComposableContainerAdapter, IContainerAdapter, IResolver
Constructors
| Improve this Doc View SourceComposableContainerAdapter(ICompositionContext)
Initializes a new instance of the ComposableContainerAdapter class.
Declaration
public ComposableContainerAdapter(ICompositionContext compositionContext)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | Context for the composition. |
Methods
| Improve this Doc View SourceResolve<T>()
Resolve the service with the provided type.
Declaration
public T Resolve<T>()
Returns
Type | Description |
---|---|
T | The service. |
Type Parameters
Name | Description |
---|---|
T | The part service type. |
TryResolve<T>()
Tries to resolve the service with the provided type.
Declaration
public T TryResolve<T>()
Returns
Type | Description |
---|---|
T | The service or |
Type Parameters
Name | Description |
---|---|
T | The part service type. |
Implements
ServiceStack.Configuration.IContainerAdapter
ServiceStack.Configuration.IResolver