Exemplo n.º 1
0
        private static CommandResponse MethodEnd(ICommandService clientService, IAsyncResult asyncResult, CommandType commandType)
        {
            switch (commandType)
            {
            case CommandType.Unexecute: return(clientService.EndInvokeUnexecute(asyncResult));

            case CommandType.Enabled: return(clientService.EndInvokeEnabled(asyncResult));

            default: return(clientService.EndInvokeExecute(asyncResult));
            }
        }