/// <summary> /// Initializes a new instance of the <see cref="ContextHandler"/> class /// </summary> /// <param name="policyInformationRepository">the policy information repository handler</param> /// <param name="rolesWrapper">the roles handler</param> /// <param name="partiesWrapper">the party information handler</param> /// <param name="memoryCache">The cache handler </param> /// <param name="settings">The app settings</param> public ContextHandler( IInstanceMetadataRepository policyInformationRepository, IRoles rolesWrapper, IParties partiesWrapper, IMemoryCache memoryCache, IOptions <GeneralSettings> settings) { _policyInformationRepository = policyInformationRepository; _rolesWrapper = rolesWrapper; _partiesWrapper = partiesWrapper; _memoryCache = memoryCache; _generalSettings = settings.Value; }
/// <summary> /// Initializes a new instance of the <see cref="DelegationContextHandler"/> class /// </summary> /// <param name="policyInformationRepository">the policy information repository handler</param> /// <param name="rolesWrapper">the roles handler</param> /// <param name="partiesWrapper">the party information handler</param> /// <param name="memoryCache">The cache handler </param> /// <param name="settings">The app settings</param> public DelegationContextHandler(IInstanceMetadataRepository policyInformationRepository, IRoles rolesWrapper, IParties partiesWrapper, IMemoryCache memoryCache, IOptions <GeneralSettings> settings) : base(policyInformationRepository, rolesWrapper, partiesWrapper, memoryCache, settings) { }