Search Results for

    Show / Hide Table of Contents
    View Source

    Class UniqueServiceDescriptor

    A custom that supports unique checking

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.DependencyInjection
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class UniqueServiceDescriptor : ServiceDescriptor
    Remarks

    This is required because the default implementation doesn't implement Equals or GetHashCode. see: https://github.com/dotnet/runtime/issues/47262

    Constructors

    View Source

    UniqueServiceDescriptor(Type, Type, ServiceLifetime)

    Initializes a new instance of the UniqueServiceDescriptor class.

    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
    System.Object obj
    Returns
    Type Description
    System.Boolean
    View Source

    Equals(UniqueServiceDescriptor)

    Declaration
    public bool Equals(UniqueServiceDescriptor other)
    Parameters
    Type Name Description
    UniqueServiceDescriptor other
    Returns
    Type Description
    System.Boolean
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UniqueServiceDescriptor(Type, Type, ServiceLifetime)
    • Methods
      • Equals(Object)
      • Equals(UniqueServiceDescriptor)
      • GetHashCode()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX