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)); } } }
public override void RunComandNonAnswer(CCNETCommand Command) { try { base.RunComandNonAnswer(Command); } catch (Exception ex) { if (OnError != null) { OnError(this, new CCNETErrorEvent(ex)); } } }
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); } }
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); } }
public override Answer RunCommand(CCNETCommand Command, bool IsThrowException) { return(base.RunCommand(Command, IsThrowException)); }