public SessionNAuth() { var redisSettings = ServiceContext.Resolve <RedisSettings>(); _sessionNAuthSettings = ServiceContext.Resolve <SessionNAuthSettings>(); //_cache = ServiceContext.Resolve<ICache4Redis>(new NamedPropertyParameter("redisSettings", redisSettings), new NamedPropertyParameter("defaultDatabase", _sessionNAuthSettings.CacheDBIndex)); _cache = ServiceContext.Resolve <ICache4Redis>(new TypedParameter(typeof(RedisSettings), redisSettings), new TypedParameter(typeof(int), _sessionNAuthSettings.CacheDBIndex)); }
public HTTPTokenProvider(SessionNAuthSettings sessionNAuthSettings) { _sessionNAuthSettings = sessionNAuthSettings; }