C# Class Opc.Ua.Com.Client.HdaSubscribeRequestManager

Manages the subscribe requests.
Inheritance: IDisposable
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
CreateItems ( ServerSystemContext context, IList monitoredItems ) : void

Creates subscription requests for monitored items.

DeleteItems ( ServerSystemContext context, IList monitoredItems ) : void

Deletes subscription requests for monitored items.

Dispose ( ) : void

Frees any unmanaged resources.

HdaSubscribeRequestManager ( ServerSystemContext context, int localeId, Opc.Ua.Com.Client.ComHdaClientConfiguration configuration ) : System

Initializes a new instance of the HdaSubscribeRequestManager class.

ModifyItems ( ServerSystemContext context, IList monitoredItems ) : void

Modifies subscription requests for monitored items.

RecreateItems ( ) : void

Recreates the items after a disconnect.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
Add ( NodeState source, MonitoredItem monitoredItem ) : HdaSubscribeAttributeRequest

Adds the monitored item to the collection.

ApplyChanges ( HdaSubscribeAttributeRequest>.Dictionary requests, bool initialUpdateRequired ) : void

Applies any changes to the subscriptions.

AssignHandles ( ComHdaClient client, HdaSubscribeAttributeRequest>.Dictionary requests ) : void

Assigns the handles to the requests.

DoScan ( HdaSubscribeAttributeRequest>.Dictionary requests, bool initialUpdate ) : void

Called when the scan attributes timer expires.

FindAttributeRequest ( string itemId, bool create ) : HdaSubscribeAttributeRequest

Finds the item attributes request for the specifed item.

GetItemId ( NodeState source ) : string

Gets the HDA item id associated with the source.

HasExternalSource ( NodeState node, uint attributeId ) : bool

Determines whether the attribute has an external source.

Modify ( NodeState source, MonitoredItem monitoredItem ) : HdaSubscribeAttributeRequest

Modifies the monitored item to the collection.

OnScanAttributes ( object state ) : void

Called when the scan attributes timer expires.

ReleaseHandles ( ComHdaClient client, List requests ) : void

Releases the handles.

Remove ( NodeState source, MonitoredItem monitoredItem ) : HdaSubscribeAttributeRequest

Removes the monitored item from the collection.

Method Details

CreateItems() public method

Creates subscription requests for monitored items.
public CreateItems ( ServerSystemContext context, IList monitoredItems ) : void
context Opc.Ua.Server.ServerSystemContext The context.
monitoredItems IList The monitored items.
return void

DeleteItems() public method

Deletes subscription requests for monitored items.
public DeleteItems ( ServerSystemContext context, IList monitoredItems ) : void
context Opc.Ua.Server.ServerSystemContext The context.
monitoredItems IList The monitored items.
return void

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

HdaSubscribeRequestManager() public method

Initializes a new instance of the HdaSubscribeRequestManager class.
public HdaSubscribeRequestManager ( ServerSystemContext context, int localeId, Opc.Ua.Com.Client.ComHdaClientConfiguration configuration ) : System
context Opc.Ua.Server.ServerSystemContext The context.
localeId int The locale to use.
configuration Opc.Ua.Com.Client.ComHdaClientConfiguration The configuration.
return System

ModifyItems() public method

Modifies subscription requests for monitored items.
public ModifyItems ( ServerSystemContext context, IList monitoredItems ) : void
context Opc.Ua.Server.ServerSystemContext The context.
monitoredItems IList The monitored items.
return void

RecreateItems() public method

Recreates the items after a disconnect.
public RecreateItems ( ) : void
return void