Class NatsObserver<T>
public class NatsObserver<T> : IObserver<T>
Type Parameters
T
- Inheritance
-
NatsObserver<T>
- Implements
-
IObserver<T>
- Inherited Members
Constructors
NatsObserver(NatsConnection, Func<T, string>, Func<T, byte[]>)
public NatsObserver(NatsConnection connection, Func<T, string> subjectFactory, Func<T, byte[]> converter)
Parameters
NatsObserver(NatsConnection, string, Func<T, byte[]>)
public NatsObserver(NatsConnection connection, string subject, Func<T, byte[]> converter)
Parameters
Methods
OnCompleted()
Notifies the observer that the provider has finished sending push-based notifications.
public void OnCompleted()
OnError(Exception)
Notifies the observer that the provider has experienced an error condition.
public void OnError(Exception error)
Parameters
errorExceptionAn object that provides additional information about the error.
OnNext(T)
Provides the observer with new data.
public void OnNext(T value)
Parameters
valueTThe current notification information.