Click or drag to resize

UniqueService Class

A handy unique service identifier type - all instances will be regarded as unequal.
Inheritance Hierarchy

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public sealed class UniqueService : Service

The UniqueService type exposes the following members.

Constructors
  NameDescription
Public methodUniqueService
Initializes a new instance of the UniqueService class.
Public methodUniqueService(Guid)
Initializes a new instance of the UniqueService class.
Top
Properties
  NameDescription
Public propertyDescription
Gets a programmer-readable description of the identifying feature of the service.
(Overrides ServiceDescription.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ServiceEquals(Object).)
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
See Also