Click or drag to resize

TypedService Class

Identifies a service according to a type to which it can be assigned.
Inheritance Hierarchy

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public sealed class TypedService : Service, 
	IServiceWithType, IEquatable<TypedService>

The TypedService type exposes the following members.

Constructors
  NameDescription
Public methodTypedService
Initializes a new instance of the TypedService class.
Top
Properties
  NameDescription
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(TypedService)
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