public RedisCacheBackend(IBackendApi backend, IConnectionMultiplexer multiplexer, int validateTokenExpiryInMin, int setOnlineExpiryInMin, int setOfflineExpiryInMin, int chatsExpiryInMin) { _validateTokenExpiryInMin = validateTokenExpiryInMin; _setOnlineExpiryInMin = setOnlineExpiryInMin; _setOfflineExpiryInMin = setOfflineExpiryInMin; _chatsExpiryInMin = chatsExpiryInMin; _backend = backend ?? throw new ArgumentNullException(nameof(backend)); _redis = multiplexer ?? throw new ArgumentNullException(nameof(multiplexer)); }
public TokenAuthorizeAttribute(IBackendApi backendApi) { _backend = backendApi; }
public WorkerHub(IConnectionMapper <string> mapper, IBackendApi backend, ICounter counter) { _mapper = mapper; _backend = backend; _counter = counter; }
public MemoryCacheBackend(IBackendApi backend) { _backend = backend; }