Example |
public class ExampleNotifyMemoryServer : ExampleMemoryServer
The ExampleNotifyMemoryServer type exposes the following members.
| Name | Description | |
|---|---|---|
| ExampleNotifyMemoryServer | Initializes a new instance of the ExampleNotifyMemoryServer class |
| Name | Description | |
|---|---|---|
| Connect |
Connects to the server.
(Inherited from ExampleMemoryServer) | |
| Disconnect |
Disconnects from the server.
(Inherited from ExampleMemoryServer) | |
| PublishChanges | Example of raising publication events. | |
| Read |
Read data from server memory.
(Inherited from ExampleMemoryServer) | |
| ReadSymbolTable |
Read the symbol table from the PLC.
(Inherited from ExampleMemoryServer) | |
| Subscribe | Put in here whatever is required to subscribe to memory changes. | |
| Unsubscribe | Put in here whatever is required to unsubscribe from memory changes. | |
| Write |
Write data into server memory.
(Inherited from ExampleMemoryServer) |
Normally, you'd replace this class entirely with whatever code is required to access your server.
This version of the example shows how to publish when memory changes.