C-DEngine 5.105

TheThingRegistry Methods

The TheThingRegistry type exposes the following members.

Methods


  Name Description
Public method Static member ClassPropertiesToThingProperties
Converts fields and properties of a class into Thing Properties
Public method Static member CreateOwnedThingAsync(Boolean, TheThing, Boolean, String, String, String, String, String, Dictionary<(Of <<'(String, Object>)>>))
Public method Static member CreateOwnedThingAsync(Boolean, TheThing, Boolean, String, String, String, String, String, Dictionary<(Of <<'(String, Object>)>>), TimeSpan)
Public method Static member CreateOwnedThingAsync(TheThingRegistry..::..MsgCreateThingRequestV1)
Public method Static member CreateOwnedThingAsync(TheThingRegistry..::..MsgCreateThingRequestV1, TimeSpan)
Public method Static member CreateOwnedThingAsync(TheThingRegistry..::..MsgCreateThingRequestV1, TheMessageAddress)
Public method Static member CreateOwnedThingAsync(TheThingRegistry..::..MsgCreateThingRequestV1, TheMessageAddress, TimeSpan)
Public method Static member CreateOwnedThingForAddressAsync
Public method Static member DeleteOwnedThingAsync
Public method Static member DeleteThing(ICDEThing)
Delets the given thing from TheThingRegistry
Public method Static member DeleteThing(TheThing)
Delets the given thing from TheThingRegistry
Public method Static member DeleteThing(String, ICDEThing)
Deletes the given ICDEThing of the given Engine
Public method Static member DeleteThingByProperty
Deletes the first TheThing found with the given Property Name and Value. I.e: DeleteThingByProperty("MyEngine",Guid.empty,"DeviceType","MyThingType"); will delete the first things of the MyEngine with the DeviceType "MyThingType"
Public method Static member DeleteThingsByProperty
Deletes all TheThings found with the given Property Name and Value. I.e: DeleteThingByProperty("MyEngine",Guid.empty,"DeviceType","MyThingType"); will delete all things of the MyEngine with the DeviceType "MyThingType"
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Static member GetAllDeviceTypesByCap
Returns all DeviceTypes of engine with the given capability
Public method Static member GetBaseEngine(TheThing)
Returns the IBaseEngine of TheThing After the first call the IBaseEngine is cached in TheThing and subsequent calls are faster Alternative you can call pThing.GetBaseEngine();
Public method Static member GetBaseEngine(TheThing, Boolean)
Returns the IBaseEngine of TheThing This call is NOT cached if AllowRemoteEngine is true
Public method Static member GetBaseEngine(String)
Return the IBaseEngine interface for a given EngineName. This call is quite expensive and the result should be cached if possible
Public method Static member GetBaseEngine(String, Boolean)
Return the IBaseEngine interface for a given EngineName. This call is quite expensive and the result should be cached if possible
Public method Static member GetBaseEngineAsThing(String)
Return TheThing object of a given EngineName
Public method Static member GetBaseEngineAsThing(String, Boolean)
Returns TheThing of a given EngineName
Public method Static member GetBaseEngines
Returns all IBaseEngines known in TheThingRegistry
Public method Static member GetBaseEnginesAsThing(Boolean)
Returns all Base Engines
Public method Static member GetBaseEnginesAsThing(Boolean, Boolean)
Returns all Base Engines
Public method Static member GetBaseEnginesByCap
Gets a base engine by a Capability
Public method Static member GetEngineNames
Returns a list of all Engine Names known
Public method GetHashCode (Inherited from Object.)
Public method Static member GetHostProperty
Returns the value for a Property of the Hosting Node.
Public method Static member GetOwnedThingAsync(TheMessageAddress)
NOT IMPLEMENTED YET: Returns Owner Thing from a remote Thing
Public method Static member GetOwnedThingAsync(TheMessageAddress, TimeSpan)
NOT IMPLEMENTED YET: Will retreive a thing from a different node
Public method Static member GetPropertyMapperLastUpdate
Returns the last Target Update of the Property Mapper
Public method Static member GetThingByFunc
Returs TheThings matching the Selector
Public method Static member GetThingByID(String, String)
Return TheThing with the specified "ID" property
Public method Static member GetThingByID(String, String, Boolean)
Return TheThing with the specified "ID" property
Public method Static member GetThingByMID(Guid, Boolean)
Return TheThing with the specified unique Identifier cdeMID
Public method Static member GetThingByMID(String, Guid)
Return TheThing with the specified unique Identifier cdeMID
Public method Static member GetThingByMID(String, Guid, Boolean)
Return TheThing with the specified unique Identifier cdeMID
Public method Static member GetThingByProperty(String, Guid, String, String)
Returns a TheThings matching the PropertyName/Value combination in a given Engine
Public method Static member GetThingByProperty(String, Guid, String, String, Boolean)
Returns a TheThings matching the PropertyName/Value combination in a given Engine
Public method Static member GetThingObjectByMID
Return TheLiveObject of TheThing in the Engine with the cdeMID given.
Public method Static member GetThingsByFunc
Returs a list of TheThings matching the Selector
Public method Static member GetThingsByProperty(String, Guid, String, String)
Returns a list of TheThings matching the PropertyName/Value combination in a given Engine
Public method Static member GetThingsByProperty(String, Guid, String, String, Boolean)
Returns a list of TheThings matching the PropertyName/Value combination in a given Engine
Public method Static member GetThingsOfEngine(String)
Gets all Things of a given Engine
Public method Static member GetThingsOfEngine(String, Boolean)
Gets all Things of a given Engine
Public method Static member GetThingsOfEngine(String, Boolean, Boolean)
Gets all Things of a given Engine
Public method Static member GetThingsOfEngine(String, eThingCaps)
Get things of an Engine with a given capability
Public method GetType (Inherited from Object.)
Public method Static member HasThingsWithFunc
Checks if TheThingRegistry has at least one TheThing that fits the pSelector function
Public method Static member IsEngineInitialized
Checks if a given EngineName is registered in TheThingRegistry and Started (SetInitialized() was called by the engine).
Public method Static member IsEngineRegistered(String)
Return true of the engine is registered in TheThingRegistry. Attention: it also returns true if the Engine is registered but is currently NOT running! For example if the Plugin was running at some time but removed at a later time. Use "IsEngineAlive"
Public method Static member IsEngineRegistered(String, Boolean)
Checks if a given EngineName is registered in TheThingRegistry
Public method Static member IsEngineStarted
Checks if a given EngineName is registered in TheThingRegistry and Started (InitEngineAssets() was completed and Engine HasLiveObject==true)
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member PropertyMapper
Direcly connects two properties of two things together Use "UnmapProperty" to remove an existing connection
Public method Static member RegisterEventOfDeviceType
Helper Function that allows registering for a special event on all Things of a given DeviceType This allows for Node Wide registration of certain known events of special DeviceTypes
Public method Static member RegisterEventOfThing
Short for tThing.RegisterEvent(eventname,callback)
Public method Static member RegisterThing(ICDEThing)
Registers a Thing with TheThingRegistry Properties of TheThing that is referenced in ICDEThing will be persisted in TheThingRegistry and "Init()" and "CreateUX()" will be called
Public method Static member RegisterThing(ICDEThing, Boolean)
Registers a Thing with TheThingRegistry Properties of TheThing that is referenced in ICDEThing will be persisted in TheThingRegistry and "Init()" and "CreateUX()" will be called
Public method Static member RegisterThingGlobally(ICDEThing)
Sends a publication out to all Nodes in the Mesh and registers this Thing in other TheThingRegistry of all nodes Property changes are then sent to all nodes as well and TheRulesEngine of remote notes can be triggered by Properties of the Origin Thing or set Actions on a remote thing.
Public method Static member RegisterThingGlobally(TheThing)
Sends a publication out to all Nodes in the Mesh and registers this Thing in other TheThingRegistry of all nodes Property changes are then sent to all nodes as well and TheRulesEngine of remote notes can be triggered by Properties of the Origin Thing or set Actions on a remote thing.
Public method Static member SetHostProperty
Sets a Host Property
Public method ToString (Inherited from Object.)
Public method Static member UnmapPropertyMapper
Unregisters the event of a Property Mapper
Public method Static member UnregisterEventOfDeviceType
Helper Function that allows to unregister a callback previously registered with RegisterEventOfDeviceType
Public method Static member UnregisterThingGlobally
Unregisters a Thing globally
Public method Static member UpdateEngineUX
Updates the NMI Model for all Things in the Given Engine by calling the "CreateUX()" function of all TheThings
Public method Static member UpdateThing
Updates the given Thing in TheThingRegistry- if Fire Update is true, a ThingUpdated event on TheThingRegistry will be fired for TheRulesEngine. If set to "False" TheRulesEngine will not be notified. TheThingRegistry's StorageMirror will also NOT fire HasUpdates if FireUpdate is set to false. TheBaseEngine of TheThing will always get eEngineEvents.ThingUpdated if this function is called.
Public method Static member UregisterEventOfThing
Short for tThing.UnregisterEvent(eventname,callback)
Public method Static member WaitForInitializeAsync(TheMessageAddress)
Public method Static member WaitForInitializeAsync(TheThing)
Public method Static member WaitForInitializeAsync(TheThing, TimeSpan)