Skip to content

LoopbackTransport

Namespace: E2E.Engine.Protocol

public sealed class LoopbackTransport : IEngineTransport

Serves an engine in this process over in-memory streams. Every call still crosses the protocol, serialized as on any other transport, so a suite run through it proves an engine and the harness need nothing the protocol cannot carry. Upstream’s loopbackTransport.

Inheritance: object

Implements: IEngineTransport

View source

public LoopbackTransport(EngineHandle engine)

Serves an engine in this process over in-memory streams. Every call still crosses the protocol, serialized as on any other transport, so a suite run through it proves an engine and the harness need nothing the protocol cannot carry. Upstream’s loopbackTransport.

Parameters

Name Type Description
engine EngineHandle

public string Label { get; }

A short description for error messages: the command, or the address.

Value: string

public Task<ITransportConnection> OpenAsync(TransportContext context)

Parameters

Name Type Description
context TransportContext

Returns: Task<ITransportConnection>