Пример #1
0
		/// <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();
		}
Пример #2
0
 /// <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();
 }
Пример #4
0
 public AuthenticationTokenHelper(IContextItemCollectionFactory factory)
 {
     Cache = factory.GetCurrentContext();
 }