Пример #1
0
        private void WriteLog(string msg)
        {
            _logger.Info(msg);
            var auditTableKafkaMessage = msg.ToObject <AuditTableKafkaMessage <object> >();

            if (auditTableKafkaMessage != null)
            {
                switch (auditTableKafkaMessage.Table)
                {
                case AuditTableTypeEnum.CRM:
                    _crmService.Log(auditTableKafkaMessage.Convert <AuditCrm, object>());
                    break;
                }
            }
        }