Click or drag to resize

StanExtensions Class

Implements handy STAN extension methods.
Inheritance Hierarchy
SystemObject
  STAN.ClientStanExtensions

Namespace:  STAN.Client
Assembly:  Neon.Nats (in Neon.Nats.dll) Version: 2.2.0
Syntax
public static class StanExtensions

The StanExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberPublishTMessage(IStanConnection, String, TMessage)
Publish publishes the data argument to the given subject. The data argument is left untouched and needs to be correctly interpreted on the receiver. This API is synchronous and waits for the acknowledgement or error from the NATS streaming server.
Public methodStatic memberPublishTMessage(IStanConnection, String, TMessage, EventHandlerStanAckHandlerArgs)
Publish publishes the data argument to the given subject. The data argument is left untouched and needs to be correctly interpreted on the receiver. This API is asynchronous and handles the acknowledgement or error from the NATS streaming server in the provided handler. An exception is thrown when an error occurs during the send, the handler will process acknowledgments and errors.
Public methodStatic memberPublishAsyncTMessage
Publish publishes the data argument to the given subject. The data argument is left untouched and needs to be correctly interpreted on the receiver. This API is asynchronous and handles the acknowledgement or error from the NATS streaming server in the provided handler. An exception is thrown when an error occurs during the send, the handler will process acknowledgments and errors.
Public methodStatic memberSubscribeTMessage(IStanConnection, String, EventHandlerStanMsgHandlerArgsTMessage)
Subscribe will create an Asynchronous Subscriber with interest in a given subject, assign the handler, and immediately start receiving messages. The subscriber will default options.
Public methodStatic memberSubscribeTMessage(IStanConnection, String, StanSubscriptionOptions, EventHandlerStanMsgHandlerArgsTMessage)
Subscribe will create an Asynchronous subscriber with interest in a given subject, assign the handler, and immediately start receiving messages.
Public methodStatic memberSubscribeTMessage(IStanConnection, String, String, EventHandlerStanMsgHandlerArgsTMessage)
Subscribe will create an Asynchronous Subscriber with interest in a given subject, assign the handler, and immediately start receiving messages. The subscriber will use default subscriber options.
Public methodStatic memberSubscribeTMessage(IStanConnection, String, String, StanSubscriptionOptions, EventHandlerStanMsgHandlerArgsTMessage)
Subscribe will create an Asynchronous Subscriber with interest in a given subject, assign the handler, and immediately start receiving messages.
Top
See Also