Skip to content

GrainStreamingExtensions Methods

Extension methods for accessing stream providers from a Grain or IGrainBase implementation.

GetStreamProvider(Grain, string)

staticextension
View source
public static IStreamProvider GetStreamProvider(this Grain grain, string name)
Gets the stream provider with the specified name.

Parameters

grainGrain
The grain.
namestring
The provider name.

Returns

The stream provider.

GetStreamProvider(IGrainBase, string)

staticextension
View source
public static IStreamProvider GetStreamProvider(this IGrainBase grain, string name)
Gets the stream provider with the specified name.

Parameters

grainIGrainBase
The grain.
namestring
The provider name.

Returns

The stream provider.