Class ServiceFromResolutionInfoResolver
Implementation of IGetsDecoratedServiceFromResolutionInfo which builds up the service using the decorator pattern.
Inheritance
System.Object
ServiceFromResolutionInfoResolver
Implements
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: CSF.DecoratorBuilder
Assembly: CSF.DecoratorBuilder.Common.dll
Syntax
public class ServiceFromResolutionInfoResolver : IGetsDecoratedServiceFromResolutionInfo
Constructors
| Improve this Doc View SourceServiceFromResolutionInfoResolver(IGetsSingleObjectFromResolutionInfo)
Initialises a new instance of ServiceFromResolutionInfoResolver.
Declaration
public ServiceFromResolutionInfoResolver(IGetsSingleObjectFromResolutionInfo serviceResolver)
Parameters
Type | Name | Description |
---|---|---|
IGetsSingleObjectFromResolutionInfo | serviceResolver | A service resolver. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Methods
| Improve this Doc View SourceGetDecoratedService(DecoratorBasedServiceResolutionInfo)
Get the service, resolved using the decorator pattern.
Declaration
public object GetDecoratedService(DecoratorBasedServiceResolutionInfo resolutionInfo)
Parameters
Type | Name | Description |
---|---|---|
DecoratorBasedServiceResolutionInfo | resolutionInfo | Information about how the service should be resolved. |
Returns
Type | Description |
---|---|
System.Object | The resolved service. |