예제 #1
0
        protected override void InternalProcessRecord()
        {
            TaskLogger.LogEnter();
            ELCTaskHelper.VerifyIsInConfigScopes(this.DataObject, base.SessionSettings, new Task.TaskErrorLoggingDelegate(base.WriteError));
            string fqdn = this.DataObject.Fqdn;
            AssistantsRpcClient assistantsRpcClient = new AssistantsRpcClient(fqdn);
            int num = 3;

            try
            {
IL_37:
                assistantsRpcClient.Stop("ElcAssistant");
            }
            catch (RpcException ex)
            {
                num--;
                if ((ex.ErrorCode == 1753 || ex.ErrorCode == 1727) && num > 0)
                {
                    goto IL_37;
                }
                base.WriteError(new TaskException(RpcUtility.MapRpcErrorCodeToMessage(ex.ErrorCode, fqdn)), ErrorCategory.InvalidOperation, null);
                goto IL_37;
            }
            TaskLogger.LogExit();
        }