public async Task <bool> AddOperatorFusableInput() { IEndpointContent endpointContent = new ObjectEndpoint(); ((ObjectEndpoint)endpointContent).SetOperatorInputEndpoint(this); EndpointContent = (ObjectEndpoint)endpointContent; Task.Run(() => AddOperatorInput(EndpointContent)); return(true); }
public async Task ToInputAsync(IAsyncVertexInputEndpoint inputEndpoint, string otherVertex, string otherEndpoint, CancellationToken token) { _inputEndpoint = inputEndpoint as OperatorFusableInput; bool isAdded = await _inputEndpoint.AddOperatorFusableInput(); if (isAdded) { IEndpointContent endpointContent = new ObjectEndpoint(); ((ObjectEndpoint)endpointContent).SetOperatorOutputEndpoint(this); _operator.AddOutput(_thisId, ref endpointContent); _operator.WaitForOutputCompletion(_thisId); } }