public async Task<StopResponse> Stop() { await BeginRunStateTransition(); var fbb = BeginRequest(); StopRequest.StartStopRequest(fbb); int requestDataOffset = StopRequest.EndStopRequest(fbb); var response = await CommitRequest(fbb, RequestData.StopRequest, requestDataOffset); System.Diagnostics.Debug.Assert(response.ResponseDataType == ResponseData.StopResponse); var stopResponse = new StopResponse(); response.GetResponseData(stopResponse); await CompleteRunStateTransition(RunState.Paused); return stopResponse; }
public static StopResponse GetRootAsStopResponse(ByteBuffer _bb, StopResponse obj) { return (obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static StopResponse GetRootAsStopResponse(ByteBuffer _bb, StopResponse obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }