private static bool HandleEndHostClose(IAsyncResult result) { WorkflowServiceHost.CloseAsyncResult asyncState = (WorkflowServiceHost.CloseAsyncResult)result.AsyncState; asyncState.host.EndHostClose(result); return(asyncState.CloseDurableInstanceManager()); }
private static bool HandleDurableInstanceManagerEndClose(IAsyncResult result) { WorkflowServiceHost.CloseAsyncResult asyncState = (WorkflowServiceHost.CloseAsyncResult)result.AsyncState; asyncState.host.durableInstanceManager.EndClose(result); return(true); }