public async void WriteServiceEvent(ServiceEventData data) { using (var db = DbConnection) { await db.ExecuteAsync(DbQueryStr.CreateServiceEvent, new { @time = data.Timestamp, @sessionId = data.SessionId, @exchangeId = data.ExchangeId, @service = data.ServiceName.ToString(), @event = data.EventType.ToString(), @msg = data.Message }); } }
public void WriteServiceEvent(ServiceEventData data) { _dbRepo.WriteServiceEvent(null, data); }
public void WriteServiceEvent(string sessionId, ServiceEventData data) { WriteServiceEvent(sessionId, data.EventType, data.ServiceName, data.Message); }