private void HandleIXgxToZmind(IXgxToZmind msg) { try { var unitContract = msg as UnitContract; var userContract = msg as UserContract; var vipContract = msg as VipContract; var itemCategoryContract = msg as ItemCategoryContract; var skuContract = msg as SkuContract; var itemContract = msg as ItemContract; var itemDetailAmountContract = msg as ItemDetailAmountContract; var amountIntegralContract = msg as AmountIntergralContract; var orderChangeContract = msg as OrderChangeContract; if (vipContract != null) { _log.Debug(new { tableName = "_vipDomainService", msg = msg }); _vipDomainService.Deal(vipContract); } else if (userContract != null) { _log.Debug(new { tableName = "_userDomainService", msg = msg }); _userDomainService.Deal(userContract); } else if (unitContract != null) { _log.Debug(new { tableName = "_unitDomainService", msg = msg }); _unitDomainService.Deal(unitContract); } else if (itemCategoryContract != null) { _log.Debug(new { tableName = "_itemCategoryDomainService", msg = msg }); _itemCategoryDomainService.Deal(itemCategoryContract); } else if (skuContract != null) { _log.Debug(new { tableName = "_skuDomainService", msg = msg }); _skuDomainService.Deal(skuContract); } else if (itemContract != null) { _log.Debug(new { tableName = "_itemDomainService", msg = msg }); _itemDomainService.Deal(itemContract); } else if (itemDetailAmountContract != null) { _log.Debug(new { tableName = "_itemDetailAmountDomainService", msg = msg }); _itemDetailAmountDomainService.Deal(itemDetailAmountContract); } else if (amountIntegralContract != null) { _log.Debug(new { tableName = "_amountIntegralDomainService", msg = msg }); _amountIntegralDomainService.Deal(amountIntegralContract); } else if (orderChangeContract != null) { _log.Debug(new { tableName = "_orderChangeDomainService", msg = msg }); _orderChangeDomainService.Deal(orderChangeContract); } } catch (Exception ex) { _log.Error(ex); throw ex; } }