Skip to content

Interface IRpcStreamingContext

Namespace: DotBoxD.Services.Streaming.Remote
Assembly: DotBoxD.Services.dll

Gives generated dispatchers access to streamed arguments and streamed responses.

public interface IRpcStreamingContext
IAsyncEnumerable<T> GetAsyncEnumerable<T>(RpcStreamHandle handle)

handle RpcStreamHandle

IAsyncEnumerable<T>

T

Pipe GetPipe(RpcStreamHandle handle)

handle RpcStreamHandle

Pipe

Stream GetStream(RpcStreamHandle handle)

handle RpcStreamHandle

Stream

void SetResponse(Stream stream)

stream Stream

void SetResponse(Pipe pipe)

pipe Pipe

void SetResponse<T>(IAsyncEnumerable<T> items)

items IAsyncEnumerable<T>

T