示例#1
0
 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));
 }
示例#2
0
 public TokenAuthorizeAttribute(IBackendApi backendApi)
 {
     _backend = backendApi;
 }
示例#3
0
 public WorkerHub(IConnectionMapper <string> mapper, IBackendApi backend, ICounter counter)
 {
     _mapper  = mapper;
     _backend = backend;
     _counter = counter;
 }
示例#4
0
 public MemoryCacheBackend(IBackendApi backend)
 {
     _backend = backend;
 }