Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void WarewolfQueue_OpenSession_Success()
 {
     using (var session = _queue.OpenSession())
     {
         //
     }
 }