Show / Hide Table of Contents

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.

Inheritance
Object
Decorator<TService>
Decorator<TService, TImpl>
DisposableDecorator<TService>
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
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

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX