public AuthHandler(JwtHeader jwtHeader, JwtSecurityTokenHandler jwtSecurityTokenHandler, IServerIdentifier serverId, TokenValidationParameters validationParameters) { _jwtHeader = jwtHeader; _jwtSecurityTokenHandler = jwtSecurityTokenHandler; _server = serverId; _validationParameters = validationParameters; }
public Node(NodeInfo nodeInfo, IServerIdentifier serverIdentifier, ISemaphoreProvider semaphoreProvider) { _nodeInfo = nodeInfo; _tcpClient = new TcpClient(); _serverIdentifier = serverIdentifier; _semaphoreProvider = semaphoreProvider; TryConnectAsync(_nodeInfo); }
public DefaultNodeProvider(PomeliumOptions pomeliumOptions, IDistributedCache distributedCache, IServerIdentifier serverIdentifier, ISemaphoreProvider semaphoreProvider) { _pomeliumOptions = pomeliumOptions; _distributedCache = distributedCache; _serverIdentifier = serverIdentifier; _semaphoreProvider = semaphoreProvider; _timer = new Timer(TimeIntervalCallBack, null, 0, 30 * 1000); }
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; }
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; }