コード例 #1
0
ファイル: Command.cs プロジェクト: Jetproger/Jetproger.Tools
        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));
            }
        }