Пример #1
0
        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));
        }
Пример #2
0
 public HTTPTokenProvider(SessionNAuthSettings sessionNAuthSettings)
 {
     _sessionNAuthSettings = sessionNAuthSettings;
 }