Click or drag to resize

DecoratorService Class

A service that has been registered for the purpose of decorating other components.
Inheritance Hierarchy
SystemObject
  Autofac.CoreService
    Autofac.Features.DecoratorsDecoratorService

Namespace:  Autofac.Features.Decorators
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public sealed class DecoratorService : Service, 
	IServiceWithType, IEquatable<DecoratorService>

The DecoratorService type exposes the following members.

Constructors
  NameDescription
Public methodDecoratorService
Initializes a new instance of the DecoratorService class.
Top
Properties
  NameDescription
Public propertyCondition
Gets the condition that must be met for the decorator to be applied.
Public propertyDescription
Gets a human-readable description of the service.
(Overrides ServiceDescription.)
Public propertyServiceType
Gets the type of the service.
Top
Methods
  NameDescription
Public methodChangeType
Return a new service of the same kind, but carrying newType as the ServiceType.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ServiceEquals(Object).)
Public methodEquals(DecoratorService)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ServiceGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Service.)
Top
Remarks
This service type is used to locate decorator services and is intended for internal use only.
See Also