IStreamable<TKey,TPayload>.Subscribe Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.