Click or drag to resize

SharedHub Class

Defines a SignalR security hub for managing users, groups and SID management.
Inheritance Hierarchy
SystemObject
  HubBase
    Hub
      GSF.Web.HubsRecordOperationsHubSharedHub
        GSF.Web.SharedSharedHub

Namespace: GSF.Web.Shared
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
[AuthorizeHubRoleAttribute]
public class SharedHub : RecordOperationsHub<SharedHub>
View Source

The SharedHub type exposes the following members.

Constructors
 NameDescription
Public methodSharedHub Creates a new SharedHub.
Public methodSharedHub(ActionString, UpdateType, ActionException) Creates a new SharedHub with the specified logging functions.
Public methodSharedHub(String, ActionString, UpdateType, ActionException) Creates a new SharedHub with the specified DataContext and logging functions.
Top
Properties
 NameDescription
Public propertyClients
(Inherited from Hub)
Public propertyClientScript Gets reference to SignalR hub client browser DOM functionality.
(Inherited from RecordOperationsHubT)
Public propertyConnectionID Gets active connection ID from current hub context or assigns one to use.
(Inherited from RecordOperationsHubT)
Public propertyContext Provides information about the calling client.
(Inherited from HubBase)
Public propertyDataContext Gets DataContext created for this RecordOperationsHubT instance.
(Inherited from RecordOperationsHubT)
Public propertyGroups The group manager for this hub instance.
(Inherited from HubBase)
Public propertyRecordOperationsCache Gets RecordOperationsCache for SignalR hub.
(Inherited from RecordOperationsHubT)
Top
Methods
 NameDescription
Public methodAddNewCompany Adds new record to company table.
Public methodAddNewVendor Adds new vendor record to table.
Public methodAddNewVendorDevice Adds new record to vendor device table.
Public methodDeleteCompany Deletes record from company table.
Public methodDeleteVendor Deletes vendor table record.
Public methodDeleteVendorDevice Deletes record from vendor device table.
Public methodDispose
(Inherited from HubBase)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the RecordOperationsHubT object and optionally releases the managed resources.
(Inherited from RecordOperationsHubT)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetConnectionID Gets connection ID for active hub context, if any.
(Inherited from RecordOperationsHubT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetStatistic If measurement is a statistic, returns the associated Statistic record; otherwise, returns null.
Public methodGetStatisticFormatRecords Gets the format records for statistics associated with the metadata.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodLogException Logs an exception to hub client and any provided log exception delegate.
(Inherited from RecordOperationsHubT)
Protected methodLogStatusMessage Logs a status message to hub client and any provided log status message delegate.
(Inherited from RecordOperationsHubT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNewCompany Creates a new Company object.
Public methodNewVendor Creates new vendor object.
Public methodNewVendorDevice Creates new VendorDevice object.
Public methodOnConnected Overrides base OnConnected method to provide logging
(Overrides RecordOperationsHubTOnConnected)
Public methodOnDisconnected Overrides base OnDisconnected method to provide logging
(Overrides RecordOperationsHubTOnDisconnected(Boolean))
Public methodOnReconnected Called when the connection reconnects to this hub instance.
(Inherited from HubBase)
Public methodQueryCompanies Queries company table.
Public methodQueryCompanyCount Queries company table counts
Public methodQueryVendorCount Queries vendor table count.
Public methodQueryVendorDeviceCount Queries vendor device table count.
Public methodQueryVendorDevices Queries vendor device table records.
Public methodQueryVendors Queries vendor table records.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdateCompany Updates a record in company table.
Public methodUpdateVendor Updates record in vendor table.
Public methodUpdateVendorDevice Updates record in vendor device table.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultNodeID Gets current default Node ID for security.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also