Click or drag to resize
HubHelper Class
The HubHelper acts as a static subscription and event manager for SignalR hubs.
Inheritance Hierarchy
SystemObject
  OpenIIoT.SDK.Service.WebAPIHubHelper

Namespace: OpenIIoT.SDK.Service.WebAPI
Assembly: OpenIIoT.SDK (in OpenIIoT.SDK.dll) Version: 0.5.0.39086
Syntax
public class HubHelper

The HubHelper type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberHubHelper
Public methodHubHelper
Initializes a new instance of the HubHelper class with the supplied ApplicationManager.
Top
Properties
  NameDescription
Public propertyHub
Gets the hub being managed by the HubManager.
Public propertySubscriptions
Gets a dictionary containing all of the subscribed objects along with a list of clients subscribed to each object.
Top
Methods
  NameDescription
Public methodGetClientSubscriptions(String)
Returns a list of subscribed items for the supplied client using the default dictionary.
Public methodGetClientSubscriptions(String, DictionaryObject, ListString)
Returns a list of subscribed items for the supplied client using the supplied dictionary.
Public methodGetSubscriptions(Object)
Returns the list of clients subscribed to the supplied object in the default dictionary.
Public methodGetSubscriptions(Object, DictionaryObject, ListString)
Returns the list of clients subscribed to the supplied object in the supplied dictionary.
Public methodOnChange
An event proxy for the change event for items monitored by the hub.
Public methodSubscribe(Object, String)
Adds the supplied client to the default dictionary entry for the supplied key
Public methodSubscribe(Object, String, DictionaryObject, ListString)
Adds the supplied client to the supplied dictionary entry for the supplied key
Public methodUnsubscribe(Object, String)
Removes the supplied client from the default dictionary entry for the supplied key.
Public methodUnsubscribe(Object, String, DictionaryObject, ListString)
Removes the supplied client from the supplied dictionary entry for the supplied key.
Top
Fields
  NameDescription
Private fieldStatic memberlogger
The Logger for this class.
Private fieldmanager
The ApplicationManager for the application.
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Serializes and returns as json the specified object.
(Defined by Utility.)
Top
Remarks
SignalR hubs are unable to persist data across instances because a new instance is created for each invocation.
See Also