private static bool HandleEndGetResponse(IAsyncResult result)
 {
     ControlOperationInvoker.ControlOperationAsyncResult.RunAndGetResponseAsyncResult asyncState = (ControlOperationInvoker.ControlOperationAsyncResult.RunAndGetResponseAsyncResult)result.AsyncState;
     asyncState.returnValue = asyncState.control.getInstanceContext.WorkflowHostingResponseContext.EndGetResponse(result, out asyncState.outputs);
     return(true);
 }
 private static bool HandleEndSuspend(IAsyncResult result)
 {
     ControlOperationInvoker.ControlOperationAsyncResult.RunAndGetResponseAsyncResult asyncState = (ControlOperationInvoker.ControlOperationAsyncResult.RunAndGetResponseAsyncResult)result.AsyncState;
     asyncState.control.workflowServiceInstance.EndSuspend(result);
     return(asyncState.GetResponse());
 }
 public static object End(IAsyncResult result, out object[] outputs)
 {
     ControlOperationInvoker.ControlOperationAsyncResult.RunAndGetResponseAsyncResult result2 = AsyncResult.End <ControlOperationInvoker.ControlOperationAsyncResult.RunAndGetResponseAsyncResult>(result);
     outputs = result2.outputs;
     return(result2.returnValue);
 }