예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
            }
        }