AX#

Search Results for

    Show / Hide Table of Contents

    Class TwinIdentityProvider

    Provides access to the objects by their identities.

    Inheritance
    object
    TwinIdentityProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector.Identity
    Assembly: AXSharp.Connector.dll
    Syntax
    public class TwinIdentityProvider

    Constructors

    | Edit this page View Source

    TwinIdentityProvider()

    Creates new instance of TwinIdentityProvider.

    Declaration
    [Obsolete("Use `TwinIdentityProvider(Connector connector)` instead.")]
    public TwinIdentityProvider()
    | Edit this page View Source

    TwinIdentityProvider(Connector)

    Creates an instance of TwinIdentityProvider

    Declaration
    public TwinIdentityProvider(Connector connector)
    Parameters
    Type Name Description
    Connector connector

    Properties

    | Edit this page View Source

    Identities

    Get dictionary of identities.

    Declaration
    public SortedDictionary<ulong, ITwinIdentity> Identities { get; }
    Property Value
    Type Description
    SortedDictionary<ulong, ITwinIdentity>
    | Edit this page View Source

    IdentitiesCount

    Get count of identities.

    Declaration
    public long IdentitiesCount { get; }
    Property Value
    Type Description
    long

    Methods

    | Edit this page View Source

    AddIdentity(ITwinIdentity)

    Adds twin object to the list of identities.

    Declaration
    public void AddIdentity(ITwinIdentity twinObject)
    Parameters
    Type Name Description
    ITwinIdentity twinObject

    twin object

    | Edit this page View Source

    ConstructIdentitiesAsync()

    Refreshes and sorts identities.

    Declaration
    public Task ConstructIdentitiesAsync()
    Returns
    Type Description
    Task
    | Edit this page View Source

    GetTwinByIdentity(ITwinIdentity)

    Gets twin object by identity.

    Declaration
    public dynamic GetTwinByIdentity(ITwinIdentity obj)
    Parameters
    Type Name Description
    ITwinIdentity obj

    Twin object.

    Returns
    Type Description
    dynamic

    Twin object with given identity.

    | Edit this page View Source

    GetTwinByIdentity(object)

    Gets twin object by identity, if the object implements ITwinIdentity. If object does not implements ITwinIdentity the same object is returned.

    Declaration
    public dynamic GetTwinByIdentity(object obj)
    Parameters
    Type Name Description
    object obj

    Object with identity

    Returns
    Type Description
    dynamic

    twin object with given identity.

    | Edit this page View Source

    GetTwinByIdentity(ulong)

    Gets twin object by identity.

    Declaration
    public ITwinIdentity GetTwinByIdentity(ulong identity)
    Parameters
    Type Name Description
    ulong identity

    Twin identity address.

    Returns
    Type Description
    ITwinIdentity

    Twin object with given identity.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors