Ejemplo n.º 1
0
 public DistributedSession(
     IDistributedCache distributedCache,
     PomeliumOptions pomeliumOptions,
     AsyncLockers asyncLockers)
 {
     _distributedCache = distributedCache;
     _pomeliumOptions  = pomeliumOptions;
     _prefix           = _pomeliumOptions.SessionCachingPrefix;
     _asyncLockers     = asyncLockers;
 }
Ejemplo n.º 2
0
 public DefaultClientCollection(
     PomeliumOptions pomeliumOptions,
     IDistributedCache distributedCache,
     INodeProvider nodeProvider,
     IServerIdentifier serverIdentifier,
     AsyncLockers asyncLockers)
 {
     _pomeliumOptions  = pomeliumOptions;
     _distributedCache = distributedCache;
     _nodeProvider     = nodeProvider;
     _serverIdentifier = serverIdentifier;
     _dic          = new Dictionary <Guid, IClient>();
     _asyncLockers = asyncLockers;
 }
Ejemplo n.º 3
0
 public DefaultGarbageCollector(
     PomeliumOptions pomeliumOptions,
     IClientCollection clientCollection,
     IDistributedCache distributedCache,
     ISession session,
     IServerIdentifier serverIdentifier,
     AsyncLockers asyncLockers)
 {
     _pomeliumOptions  = pomeliumOptions;
     _clientCollection = clientCollection;
     _distributedCache = distributedCache;
     _session          = session;
     _serverIdentifier = serverIdentifier;
     _collectTimer     = new Timer(CollectCallback, null, 0, 1000 * 60);
     _asyncLockers     = asyncLockers;
 }