public async void AddOperatorInput(IEndpointContent endpointContent) { if (_isSecondaryInput) { _operator.AddSecondaryInput(_thisId, ref endpointContent); _operator.WaitForSecondaryInputCompletion(_thisId); } else { _operator.AddInput(_thisId, ref endpointContent); _operator.WaitForInputCompletion(_thisId); } }
public async Task FromStreamAsync(Stream stream, string otherVertex, string otherEndpoint, CancellationToken token) { IEndpointContent streamEndpoint = new StreamEndpoint(stream); if (_isSecondaryInput) { _operator.AddSecondaryInput(_thisId, ref streamEndpoint); _operator.WaitForSecondaryInputCompletion(_thisId); } else { _operator.AddInput(_thisId, ref streamEndpoint); _operator.WaitForInputCompletion(_thisId); } }