Class VortexIdentityProvider
Provides access to the objects by their identities.
Inheritance
System.Object
    VortexIdentityProvider
  Namespace: Vortex.Connector.Identity
Assembly: Vortex.Connector.dll
Syntax
public class VortexIdentityProvider
  Constructors
VortexIdentityProvider(IConnector)
Creates an instance of VortexIdentityProvider
Declaration
public VortexIdentityProvider(IConnector connector)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IConnector | connector | 
Fields
_connector
Declaration
IConnector _connector
  Field Value
| Type | Description | 
|---|---|
| IConnector | 
_identities
Declaration
Dictionary<OnlinerULInt, IVortexIdentity> _identities
  Field Value
| Type | Description | 
|---|---|
| System.Collections.Generic.Dictionary<OnlinerULInt, IVortexIdentity> | 
_identitiesTags
Declaration
List<OnlinerULInt> _identitiesTags
  Field Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<OnlinerULInt> | 
_null_vortex
Declaration
static NullVortexIdentity _null_vortex
  Field Value
| Type | Description | 
|---|---|
| NullVortexIdentity | 
_sortedIdentities
Declaration
readonly SortedDictionary<ulong, IVortexIdentity> _sortedIdentities
  Field Value
| Type | Description | 
|---|---|
| System.Collections.Generic.SortedDictionary<System.UInt64, IVortexIdentity> | 
Properties
Identities
Get dictionary of identities.
Declaration
public SortedDictionary<ulong, IVortexIdentity> Identities { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.SortedDictionary<System.UInt64, IVortexIdentity> | 
IdentitiesCount
Get count of identities.
Declaration
public long IdentitiesCount { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
Methods
AddIdentity(IVortexIdentity)
Adds vortexer object to the list of identities.
Declaration
public void AddIdentity(IVortexIdentity vortexObject)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVortexIdentity | vortexObject | vortexer object  | 
      
GetReferencedVortexerByIdentity(IVortexIdentity)
Declaration
IVortexIdentity GetReferencedVortexerByIdentity(IVortexIdentity obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVortexIdentity | obj | 
Returns
| Type | Description | 
|---|---|
| IVortexIdentity | 
GetVortexerByIdentity(Object)
Gets vortexer object by identity, if the object implements IVortexIdentity. If object does not implements IVortexIdentity the same object is returned.
Declaration
public dynamic GetVortexerByIdentity(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | Object with identity  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | Vortexer object with given identity.  | 
      
GetVortexerByIdentity(UInt64)
Gets vortexer object by identity.
Declaration
public IVortexIdentity GetVortexerByIdentity(ulong identity)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt64 | identity | Vortexer identity address.  | 
      
Returns
| Type | Description | 
|---|---|
| IVortexIdentity | Vortexer object with given identity.  | 
      
GetVortexerByIdentity(IVortexIdentity)
Gets vortexer object by identity.
Declaration
public dynamic GetVortexerByIdentity(IVortexIdentity obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVortexIdentity | obj | Vortexer object.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | Vortexer object with given identity.  | 
      
HasMemberByIdentityAttribute(IVortexIdentity)
Declaration
bool HasMemberByIdentityAttribute(IVortexIdentity obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVortexIdentity | obj | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
ReadIdentities()
Reads vortex objects identities.
Declaration
public void ReadIdentities()
  RefreshIdentities()
Refreshes and sorts identities.
Declaration
public void RefreshIdentities()
  SortIdentities()
Sorts identities.
Declaration
public void SortIdentities()