/// <summary> /// Instantiates a new instance of <see cref="BusHelper"/> /// </summary> public BusHelper(IConfigurationManager configurationManager, IContextItemCollectionFactory factory) { Cache = factory.GetCurrentContext(); ConfigurationManager = configurationManager; CachedChecks = new ConcurrentDictionary<string, Tuple<bool, DateTime>>(); NullableCachedChecks = new ConcurrentDictionary<string, Tuple<bool?, DateTime>>(); bool isblackListRequired; if (!ConfigurationManager.TryGetSetting("Cqrs.MessageBus.BlackListProcessing", out isblackListRequired)) isblackListRequired = true; EventBlackListProcessing = isblackListRequired; StartRefreshCachedChecks(); }
/// <summary> /// Instantiate a new instance of <see cref="DefaultAuthenticationTokenHelper"/> /// </summary> public DefaultAuthenticationTokenHelper(IContextItemCollectionFactory factory) : base(factory) { CacheKey = CallContextPermissionScopeValueKey; }
/// <summary> /// Instantiates a new instance of <see cref="ThreadedAzureDocumentDbConnectionCache"/>. /// </summary> public ThreadedAzureDocumentDbConnectionCache(IContextItemCollectionFactory factory) { Cache = factory.GetCurrentContext(); }
public AuthenticationTokenHelper(IContextItemCollectionFactory factory) { Cache = factory.GetCurrentContext(); }