IStreamable<TKey,TPayload>.Subscribe Method

Definition

Immediately starts sending events from the stream to the observer.

public IDisposable Subscribe (Microsoft.StreamProcessing.IStreamObserver<TKey,TPayload> observer);
abstract member Subscribe : Microsoft.StreamProcessing.IStreamObserver<'Key, 'Payload> -> IDisposable
Public Function Subscribe (observer As IStreamObserver(Of TKey, TPayload)) As IDisposable

Parameters

observer
Microsoft.StreamProcessing.IStreamObserver<TKey,TPayload>

The observer to which events are sent.

Returns

An object that can be used to cancel the subscription or otherwise notify the stream that the caller is no longer interested in receiving any more events.

Applies to