ITopicProducer.GetOrCreateStream(string,Action IStreamProducer )
QuixStreams.Streaming
QuixStreams.Streaming.ITopicProducer
ITopicProducer.GetOrCreateStream(string, Action) Method
Retrieves a stream that was previously created by this instance, if the stream is not closed, otherwise creates a new stream.
QuixStreams.Streaming.IStreamProducer GetOrCreateStream(string streamId, System.Action<QuixStreams.Streaming.IStreamProducer> onStreamCreated=null);
Parameters
streamId
System.String
The Id of the stream you want to get or create
onStreamCreated
System.Action<
Callback executed when a new Stream is created in the topic producer because it doesn't exist.
Returns
IStreamProducer
Stream producer to allow the stream to push data to the platform.