public void LogAuditState(Object logEntry) { if (logEntry is AuditLog auditLog) { using (var session = _warewolfQueue.OpenSession()) { session.Enqueue(auditLog); session.Flush(); } return; } throw new ArgumentException("unhandled log type: " + logEntry?.GetType().Name); }
public void WarewolfQueue_OpenSession_Success() { using (var session = _queue.OpenSession()) { // } }