-
Notifications
You must be signed in to change notification settings - Fork 3
Message
- IEventingMessageSession
- IMessageSession
- IQueuedMessageSession
- MessageReceivedEventArgs
-
MessageSession
- MaxQueueSize
- QueueSize
- Close()
- CloseAsync()
- Dispose()
- Flush()
- FlushAsync()
- GetMaxQueueSizeAsync()
- GetQueueSizeAsync()
- Open()
- Open(configuration)
- OpenAsync()
- OpenAsync(configuration)
- Publish(topic,message)
- PublishAsync(topic,message)
- Read()
- Read(timeoutMilliseconds)
- ReadAsync()
- ReadAsync(timeoutMilliseconds)
- Subscribe(topic)
- SubscribeAsync(topic)
- Unsubscribe(topic)
- UnsubscribeAsync(topic)
- MessageWithTopic
NationalInstruments.SystemLink.Clients.Message
Represents an open session for sending and receiving messages between systems connected to the same SystemLink instance. The messages are received automatically via events.
NationalInstruments.SystemLink.Clients.Message
Represents an open session for sending and receiving messages between systems connected to the same SystemLink instance.
Closes the message session and releases the client- and server-side resources associated with the session. Any messages queued for the session are lost, and any messages pending publication will not be sent.
This method has no parameters.
Closes the message session and releases the client- and server-side resources associated with the session. Any messages queued for the session are lost, and any messages pending publication will not be sent.
A task representing the asynchronous operation.
This method has no parameters.
Broadcasts a message to a topic. Subscribers of a topic receive every message published to the topic.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to publish to. |
| message | System.String | The message to publish. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic or message is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Broadcasts a message to a topic. Subscribers of a topic receive every message published to the topic.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to publish to. |
| message | System.String | The message to publish. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic or message is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Subscribes to a topic to receive all messages broadcast with the specified topic name.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to subscribe to. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Subscribes to a topic to receive all messages broadcast with the specified topic name.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to subscribe to. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Unsubscribes from a topic to stop receiving messages for that topic.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to unsubscribe from. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Unsubscribes from a topic to stop receiving messages for that topic.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to unsubscribe from. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
NationalInstruments.SystemLink.Clients.Message
Represents an open session for sending and receiving messages between systems connected to the same SystemLink instance. The messages are received by manually reading from a queue.
Gets the maximum size (in bytes) of the message queue associated with this session. This is helpful for determining how much total memory is available for storing messages.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Gets the size (in bytes) of the message queue associated with this session. This is helpful for determining the amount of memory that unread messages are consuming.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Clears all messages from the session queue without reading them.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Clears all messages from the session queue without reading them.
A task representing the asynchronous operation.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Gets the maximum size (in bytes) of the message queue associated with this session. This is helpful for determining how much total memory is available for storing messages.
A task representing the asynchronous operation.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Gets the size (in bytes) of the message queue associated with this session. This is helpful for determining the amount of memory that unread messages are consuming.
A task representing the asynchronous operation.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue with a default timeout determined by the server administrator. To read a message, subscribe to a topic first.
The message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue. To read a message, subscribe to a topic first.
The message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
| Name | Type | Description |
|---|---|---|
| timeoutMilliseconds | System.Int32 | Amount of time, in milliseconds, to keep the |
| messaging connection open. May be overridden by a maximum value that the server | ||
| administrator allows. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue with a default timeout determined by the server administrator. To read a message, subscribe to a topic first.
A task representing the asynchronous operation. When complete, the task contains the message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue. To read a message, subscribe to a topic first.
A task representing the asynchronous operation. When complete, the task contains the message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
| Name | Type | Description |
|---|---|---|
| timeoutMilliseconds | System.Int32 | Amount of time, in milliseconds, to keep the |
| messaging connection open. May be overridden by a maximum value that the server | ||
| administrator allows. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
NationalInstruments.SystemLink.Clients.Message
Represents event data for receiving a message.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic the message was published to. |
| message | System.String | The message that was published. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic
|
or message is null. |
Gets the message that was published.
Gets the topic the message was published to.
NationalInstruments.SystemLink.Clients.Message
Provides an IQueuedMessageSession over HTTP or HTTPS for sending and receiving messages between systems connected to the same SystemLink instance. The message queue is managed by the web server. Messages may be dropped if the queue becomes full. The service cleans up sessions that are not used within a certain period of time.
Gets the maximum size (in bytes) of the message queue associated with this session. This is helpful for determining how much total memory is available for storing messages.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Gets the size (in bytes) of the message queue associated with this session. This is helpful for determining the amount of memory that unread messages are consuming.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Closes the message session and releases the client- and server-side resources associated with the session. Any messages queued for the session are lost, and any messages pending publication will not be sent.
This method has no parameters.
Closes the message session and releases the client- and server-side resources associated with the session. Any messages queued for the session are lost, and any messages pending publication will not be sent.
A task representing the asynchronous operation.
This method has no parameters.
Closes the message session and releases the client- and server-side resources associated with the session. Any messages queued for the session are lost, and any messages pending publication will not be sent.
This method has no parameters.
Clears all messages from the session queue without reading them.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Clears all messages from the session queue without reading them.
A task representing the asynchronous operation.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Gets the maximum size (in bytes) of the message queue associated with this session. This is helpful for determining how much total memory is available for storing messages.
A task representing the asynchronous operation.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Gets the size (in bytes) of the message queue associated with this session. This is helpful for determining the amount of memory that unread messages are consuming.
A task representing the asynchronous operation.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Opens a new message session on the web server specified by SystemLink Client. The system must be either be registered to a SystemLink Server, or it must be a SystemLink server itself.
The opened session.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the current system cannot communicate with a SystemLink Server, |
| if the configuration provided by SystemLink Client cannot be found, | |
| or if the API call to open a session fails. |
Opens a new message session on the web server specified
in configuration.
The opened session.
| Name | Type | Description |
|---|---|---|
| configuration | NationalInstruments.SystemLink.Clients.Core.IHttpConfiguration | Defines the web server to connect to and |
| information about how to connect. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if configuration is null. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call to open a session fails. |
Asynchronously opens a new message session on the web server specified by SystemLink Client. The system must be either be registered to a SystemLink Server, or it must be a SystemLink server itself.
The opened session.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the current system cannot communicate with a SystemLink Server, |
| if the configuration provided by SystemLink Client cannot be found, | |
| or if the API call to open a session fails. |
Asynchronously opens a new message session on the web server specified
in configuration.
A task representing the asynchronous operation. On successful completion, contains the opened session.
| Name | Type | Description |
|---|---|---|
| configuration | NationalInstruments.SystemLink.Clients.Core.IHttpConfiguration | Defines the web server to connect to and |
| information about how to connect. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if configuration is null. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call to open a session fails. |
Broadcasts a message to a topic. Subscribers of a topic receive every message published to the topic.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to publish to. |
| message | System.String | The message to publish. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic or message is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Broadcasts a message to a topic. Subscribers of a topic receive every message published to the topic.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to publish to. |
| message | System.String | The message to publish. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic or message is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue with a default timeout determined by the server administrator. To read a message, subscribe to a topic first.
The message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue. To read a message, subscribe to a topic first.
The message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
| Name | Type | Description |
|---|---|---|
| timeoutMilliseconds | System.Int32 | Amount of time, in milliseconds, to keep the |
| messaging connection open. May be overridden by a maximum value that the server | ||
| administrator allows. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue with a default timeout determined by the server administrator. To read a message, subscribe to a topic first.
A task representing the asynchronous operation. When complete, the task contains the message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads a message from the queue. To read a message, subscribe to a topic first.
A task representing the asynchronous operation. When complete, the task contains the message that was read and information about the topic it was published to, or null if no messages were available within the timeout period.
| Name | Type | Description |
|---|---|---|
| timeoutMilliseconds | System.Int32 | Amount of time, in milliseconds, to keep the |
| messaging connection open. May be overridden by a maximum value that the server | ||
| administrator allows. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Subscribes to a topic to receive all messages broadcast with the specified topic name.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to subscribe to. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Subscribes to a topic to receive all messages broadcast with the specified topic name.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to subscribe to. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Unsubscribes from a topic to stop receiving messages for that topic.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to unsubscribe from. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Unsubscribes from a topic to stop receiving messages for that topic.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic to unsubscribe from. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic is null. |
| System.ObjectDisposedException | if the instance has been closed or disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
NationalInstruments.SystemLink.Clients.Message
Encapsulates a message and the topic it was published to.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| topic | System.String | The topic the message was published to. |
| message | System.String | The message that was published. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if topic
|
or message is null. |
Gets the message that was published.
Gets the topic the message was published to.