Exemplo n.º 1
0
        private static IAsyncResult MethodBegin(ICommandService clientService, CommandRequest request, CommandType commandType)
        {
            switch (commandType)
            {
            case CommandType.Unexecute: return(clientService.BeginInvokeUnexecute(request, null, clientService));

            case CommandType.Enabled: return(clientService.BeginInvokeEnabled(request, null, clientService));

            default: return(clientService.BeginInvokeExecute(request, null, clientService));
            }
        }