public Int32 AddExchangePacketConfig(ExchangePacketConfig exchangePacketConfig) { _admin = new CharmEventsAdminService.CharmEventsAdminServiceClient(); try { int rs = _admin.AddExchangePacketConfig(exchangePacketConfig); _admin.Close(); return(rs); } catch (Exception ex) { _admin.CloseCatch(ex, "AddExchangePacketConfig failed"); return(0); } }