Beispiel #1
0
 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;
 }
Beispiel #2
0
 public static StopResponse GetRootAsStopResponse(ByteBuffer _bb, StopResponse obj)
 {
     return (obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
Beispiel #3
0
 public static StopResponse GetRootAsStopResponse(ByteBuffer _bb, StopResponse obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }