コード例 #1
0
ファイル: Request.cs プロジェクト: highwaychurch/web
 public Request(GlobalConfigurationModel configuration, IRelyingPartyRepository relyingPartyRepository, IDelegationRepository delegationRepository)
 {
     _configuration = configuration;
     _relyingPartyRepository = relyingPartyRepository;
     _delegationRepository = delegationRepository;
 }
コード例 #2
0
        public void UpdateConfiguration(GlobalConfigurationModel updatedConfiguration)
        {
            using (var entities = IdentityServerConfigurationContext.Get())
            {
                var entity = Mapper.Map<GlobalConfigurationModel, GlobalConfigurationEntity>(updatedConfiguration);
                entity.Name = StandardConfigurationName;

                entities.Global.Attach(entity);
                entities.Entry(entity).State = EntityState.Modified;

                entities.SaveChanges();
                _cacheRepository.Invalidate(GlobalConfigurationCacheKey);
                _cacheRepository.Invalidate(Constants.CacheKeys.WSFedMetadata);
            }
        }
コード例 #3
0
ファイル: Request.cs プロジェクト: highwaychurch/web
 public Request(GlobalConfigurationModel configuration)
 {
     _configuration = configuration;
 }