Class
ServiceDescriptor
class ServiceDescriptor
Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.Abstractions.dll
Source file: Services.rvn
Inheritance: Object → ServiceDescriptor
An immutable service identity, activation source and lifetime.
Constructors
2 items
ServiceDescriptor(service: TypeInfo, key: object?, source: ServiceSource, lifetime: ServiceLifetime)
Creates a keyed descriptor. Key equality must remain stable while registered.
ServiceDescriptor(service: TypeInfo, source: ServiceSource, lifetime: ServiceLifetime)
Creates a descriptor; the collection validates it when added.
Properties
4 items
Lifetime: ServiceLifetime
Cache and ownership scope for created values.
Service: TypeInfo
Exact service identity used for registration and resolution.
ServiceKey: object?
Service key, compared with ordinary Object equality; null means unkeyed.
Source: ServiceSource
Constructor, factory or caller-owned instance supplying values.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString