Click or drag to resize

NatsExtensions Class

Implements handy NATS extension methods.
Inheritance Hierarchy
SystemObject
  NATS.ClientNatsExtensions

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

The NatsExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberPublish(IConnection, String, IRoundtripData)
Publishes an IRoundtripData instance to the given subject.
Public methodStatic memberPublish(IConnection, String, String, IRoundtripData)
Publishes an IRoundtripData instance to the given subject.
Public methodStatic memberRequestTRequest, TResponse(IConnection, String, TRequest)
Sends a request payload and returns the response Msg.
Public methodStatic memberRequestTRequest, TResponse(IConnection, String, TRequest, Int32)
Sends a request payload and returns the response Msg, or throws NATSTimeoutException if the timeout expires.
Public methodStatic memberRequestAsyncTRequest, TResponse
Asynchronously sends a request payload and returns the response Msg.
Public methodStatic memberSubscribeAsyncTMessage(IConnection, String)
Expresses interest in the given subject to the NATS Server.
Public methodStatic memberSubscribeAsyncTMessage(IConnection, String, EventHandlerMsgHandlerEventArgsTMessage)
Expresses interest in the given subject to the NATS Server, and begins delivering messages to the given event handler.
Public methodStatic memberSubscribeAsyncTMessage(IConnection, String, String)
Creates an asynchronous queue subscriber on the given subject.
Public methodStatic memberSubscribeAsyncTMessage(IConnection, String, String, EventHandlerMsgHandlerEventArgsTMessage)
Creates an asynchronous queue subscriber on the given subject, and begins delivering messages to the given event handler.
Public methodStatic memberSubscribeSyncTMessage(IConnection, String)
Expresses interest in the given subject to the NATS Server.
Public methodStatic memberSubscribeSyncTMessage(IConnection, String, String)
Creates a synchronous queue subscriber on the given subject.
Top
See Also