Class DummyConnector
Provides a connector without real target system connections.
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.dll
Syntax
public class DummyConnector : Connector, ITwinObject, ITwinElement, INotifyPropertyChanged
Properties
| Edit this page View SourceTargetPlatformMoniker
Declaration
public override string TargetPlatformMoniker { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
| Edit this page View SourceBuildAndStart()
This method does not have effect on DummyConnector
Declaration
public override Connector BuildAndStart()
Returns
| Type | Description |
|---|---|
| Connector |
Overrides
| Edit this page View SourceReadBatchAsync(IEnumerable<ITwinPrimitive>, eAccessPriority, int, int)
Reads batch of value items from the plc.
Declaration
public override Task ReadBatchAsync(IEnumerable<ITwinPrimitive> primitives, eAccessPriority priority = eAccessPriority.Normal, int chunkSize = 250, int interChunkDelay = 250)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ITwinPrimitive> | primitives | Value items to be read. |
| eAccessPriority | priority | |
| int | chunkSize | |
| int | interChunkDelay |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
| Edit this page View SourceReloadConnector()
This method does not have effect on dummy connector.
Declaration
public override void ReloadConnector()
Overrides
| Edit this page View SourceWriteBatchAsync(IEnumerable<ITwinPrimitive>, eAccessPriority, int, int)
Writes batch of value items to the plc.
Declaration
public override Task WriteBatchAsync(IEnumerable<ITwinPrimitive> primitives, eAccessPriority priority = eAccessPriority.Normal, int chunkSize = 250, int interChunkDelay = 250)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ITwinPrimitive> | primitives | Value items to be written. |
| eAccessPriority | priority | Determined this batch priority |
| int | chunkSize | Size of each chunk for processing primitives. Default is 250 for Low priority. |
| int | interChunkDelay | Delay between processing chunks in milliseconds. Default is 250 for Low priority. |
Returns
| Type | Description |
|---|---|
| Task |