Class NatsObservable
public class NatsObservable : IObservable<byte[]>
- Inheritance
-
NatsObservable
- Implements
-
IObservable<byte[]>
- Inherited Members
Constructors
NatsObservable(NatsConnection)
public NatsObservable(NatsConnection connection)
Parameters
connectionNatsConnection
Methods
Start(string, CancellationToken)
public Task Start(string subject, CancellationToken cancellationToken)
Parameters
subjectstringcancellationTokenCancellationToken
Returns
Subscribe(IObserver<byte[]>)
Notifies the provider that an observer is to receive notifications.
public IDisposable Subscribe(IObserver<byte[]> observer)
Parameters
Returns
- IDisposable
A reference to an interface that allows observers to stop receiving notifications before the provider has finished sending them.