Skip to content

StreamProviderExtensions Methods

Extensions for IStreamProvider.

GetStream(IStreamProvider, Guid)

staticextension
View source
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, Guid id)
Gets the stream with the specified identity and namespace.

Parameters

streamProviderIStreamProvider
The stream provider.
idGuid
The identifier.

Returns

The stream.

GetStream(IStreamProvider, long)

staticextension
View source
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, long id)
Gets the stream with the specified identity and namespace.

Parameters

streamProviderIStreamProvider
The stream provider.
idlong
The identifier.

Returns

The stream.

GetStream(IStreamProvider, string)

staticextension
View source
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string id)
Gets the stream with the specified identity and namespace.

Parameters

streamProviderIStreamProvider
The stream provider.
idstring
The identifier.

Returns

The stream.

GetStream(IStreamProvider, string, Guid)

staticextension
View source
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, Guid id)
Gets the stream with the specified identity and namespace.

Parameters

streamProviderIStreamProvider
The stream provider.
nsstring
The namespace.
idGuid
The identifier.

Returns

The stream.

GetStream(IStreamProvider, string, long)

staticextension
View source
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, long id)
Gets the stream with the specified identity and namespace.

Parameters

streamProviderIStreamProvider
The stream provider.
nsstring
The namespace.
idlong
The identifier.

Returns

The stream.

GetStream(IStreamProvider, string, string)

staticextension
View source
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, string id)
Gets the stream with the specified identity and namespace.

Parameters

streamProviderIStreamProvider
The stream provider.
nsstring
The namespace.
idstring
The identifier.

Returns

The stream.