Example #1
0
 public override void RunComandNonAnswer(CCNETCommand Command, CCNET_Sub_Command sub_command, byte[] Data)
 {
     try
     {
         base.RunComandNonAnswer(Command, sub_command, Data);
     }
     catch (Exception ex)
     {
         if (OnError != null)
         {
             OnError(this, new CCNETErrorEvent(ex));
         }
     }
 }
Example #2
0
 public override void RunComandNonAnswer(CCNETCommand Command)
 {
     try
     {
         base.RunComandNonAnswer(Command);
     }
     catch (Exception ex)
     {
         if (OnError != null)
         {
             OnError(this, new CCNETErrorEvent(ex));
         }
     }
 }
Example #3
0
        public override Answer RunCommand(CCNETCommand Command, byte[] Data)
        {
            try
            {
                return(base.RunCommand(Command, Data));
            }
            catch (Exception ex)
            {
                if (OnError != null)
                {
                    OnError(this, new CCNETErrorEvent(ex));
                }

                Answer an = new Answer();
                an.Error        = ex;
                an.CcNetCommand = Command;
                an.SendedData   = Data;
                return(an);
            }
        }
Example #4
0
        public override Answer RunCommand(CCNETCommand Command, CCNET_Sub_Command sub_command)
        {
            try
            {
                return(base.RunCommand(Command, sub_command));
            }
            catch (Exception ex)
            {
                if (OnError != null)
                {
                    OnError(this, new CCNETErrorEvent(ex));
                }

                Answer an = new Answer();
                an.Error        = ex;
                an.CcNetCommand = Command;

                an.CcNetSubCommand = sub_command;
                return(an);
            }
        }
Example #5
0
 public override Answer RunCommand(CCNETCommand Command, bool IsThrowException)
 {
     return(base.RunCommand(Command, IsThrowException));
 }