Click or drag to resize

KeyedService Class

Identifies a service using a key in addition to its type.
Inheritance Hierarchy

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

The KeyedService type exposes the following members.

Constructors
  NameDescription
Public methodKeyedService
Initializes a new instance of the KeyedService class.
Top
Properties
  NameDescription
Public propertyDescription
Gets a human-readable description of the service.
(Overrides ServiceDescription.)
Public propertyServiceKey
Gets the key of the service.
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(KeyedService)
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
See Also