View Source
Class UniqueServiceDescriptor
A custom Microsoft.Extensions.DependencyInjection.ServiceDescriptor that supports unique checking
Inheritance
object
ServiceDescriptor
Assembly: Umbraco.Core.dll
Syntax
public sealed class UniqueServiceDescriptor : ServiceDescriptor
Constructors
View Source
UniqueServiceDescriptor(Type, Type, ServiceLifetime)
Declaration
public UniqueServiceDescriptor(Type serviceType, Type implementationType, ServiceLifetime lifetime)
Parameters
| Type |
Name |
Description |
| Type |
serviceType |
|
| Type |
implementationType |
|
| ServiceLifetime |
lifetime |
|
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
View Source
Equals(UniqueServiceDescriptor?)
Declaration
public bool Equals(UniqueServiceDescriptor? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns