/// <summary> /// Post Replace Stream State and return the response port. /// </summary> public virtual PortSet <stream.ReplaceStreamResponse, Fault> ConfigureAndConnect(stream.StreamState body) { stream.ReplaceStreamState op = new stream.ReplaceStreamState(); op.Body = body ?? new stream.StreamState(); this.PostUnknownType(op); return(op.ResponsePort); }
public virtual IEnumerator<ITask> ReplaceHandler(stream.ReplaceStreamState replace) { _state = replace.Body; bool connected = Connect(); stream.ReplaceStreamResponse response = new stream.ReplaceStreamResponse(connected); replace.ResponsePort.Post(response); // Update the Replace body with any state that has changed // before sending the notification. replace.Body = (stream.StreamState)_state.Clone(); SendNotification<stream.ReplaceStreamState>(_subMgrPort, replace); yield break; }