Class Decorator<TService>
Wrapper class used to decorate TService
, aka add additional functionality
even if operations aren't virtual. The Decorator<TService> is dependency injection
friendly.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Dependencies
Assembly: IRM.dll
Syntax
public class Decorator<TService>
Type Parameters
TService
The type of class to decorate. |
Constructors
Decorator(TService)
Initializes a new instance of the Decorator<TService> class.
Declaration
public Decorator(TService instance)
Parameters
TService
instance
The instance to decorate. |
Properties
Instance
Gets the decorated instance.
Declaration
public TService Instance { get; set; }
Property Value
TService
|