예제 #1
0
        public RedisCacheEngine(IRedisSession session, IComponentAuditor auditor = null)
        {
            Auditor = auditor;

            _session = session;
            _session.TryOpenConnection();
        }
예제 #2
0
 public AppSession(IShardedRavenDocumentStoreFactory documentStoreFactory,
                   IComponentAuditor auditor,
                   IMessageSender messageSender)
 {
     _sessionCommitActions = new List <SessionCommitAction>();
     _documentStoreFactory = documentStoreFactory;
     _auditor       = auditor;
     _messageSender = messageSender;
 }
 public OwnThreadQueueProcessor(Action <T> action, IComponentAuditor auditor)
 {
     Auditor       = auditor;
     _action       = action;
     _workerThread = new Thread(ProcessOutgoing)
     {
         IsBackground = true
     };
     _workerThread.Start();
 }
예제 #4
0
 public LoggingHttpMessageHandler(IComponentAuditor auditor)
 {
     _auditor          = auditor;
     base.InnerHandler = new HttpClientHandler();
 }