public BinaryFileManager() { //this is a wrong way of using your DI container. has to be done to support this Depracated class. CacheAgent = DependencyResolver.Current.GetService<ICacheAgent>(); LoggerService = DependencyResolver.Current.GetService<ILogger>(); BinaryFactory = DependencyResolver.Current.GetService<IBinaryFactory>(); }
public DynamicResourceProvider(string resourceName) { _logger = DependencyResolver.Current.GetService <ILogger>(); _pageFactory = DependencyResolver.Current.GetService <IPageFactory>(); _cacheAgent = DependencyResolver.Current.GetService <ICacheAgent>(); _resourceName = resourceName; }
public FactoryCommonServices(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration, ICacheAgent cacheAgent) { if (resolver == null) { throw new ArgumentNullException("resolver"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } if (cacheAgent == null) { throw new ArgumentNullException("cacheAgent"); } Logger = logger; PublicationResolver = resolver; Configuration = configuration; CacheAgent = cacheAgent; }
public DynamicResourceProvider(string resourceName) { _logger = DependencyResolver.Current.GetService<ILogger>(); _pageFactory = DependencyResolver.Current.GetService<IPageFactory>(); _cacheAgent = DependencyResolver.Current.GetService<ICacheAgent>(); _resourceName = resourceName; }
/// <summary> /// /// </summary> /// <param name="options"></param> /// <param name="cacheAgent"></param> /// <param name="encryptor"></param> public BasicAuthorizeModule(AuthorizeOptions options, ICacheAgent cacheAgent, IEncryptor encryptor) { this.encryptor = encryptor; this.cacheAgent = cacheAgent; this.testMode = options.TestMode; this.expiry = new TimeSpan(0, options.Expiry > 0 ? options.Expiry : 30, 0); }
public FactoriesFacade(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration, ICacheAgent cacheAgent, ISerializerService serializerService) { if (resolver == null) { throw new ArgumentNullException("resolver"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } if (cacheAgent == null) { throw new ArgumentNullException("cacheAgent"); } if (serializerService == null) { throw new ArgumentNullException("serializerService"); } SerializerService = serializerService; Logger = logger; PublicationResolver = resolver; Configuration = configuration; CacheAgent = cacheAgent; }
public BinaryFileManager() { //this is a wrong way of using your DI container. has to be done to support this Depracated class. CacheAgent = DependencyResolver.Current.GetService <ICacheAgent>(); LoggerService = DependencyResolver.Current.GetService <ILogger>(); BinaryFactory = DependencyResolver.Current.GetService <IBinaryFactory>(); }
public AuthorizeManagement(AuthorizeOptions options) { this.cache = options.CacheAgent; this.encryptor = options.Encryptor; if (options.CacheExpiry != null && options.CacheExpiry.Value > 0) { expiryTime = new TimeSpan(0, options.CacheExpiry.Value, 0); } else { expiryTime = new TimeSpan(0, 30, 0); } }
public FactoryBase(IFactoryCommonServices factoryCommonServices) { if (factoryCommonServices == null) { throw new ArgumentNullException("factoryCommonServices"); } LoggerService = factoryCommonServices.Logger; PublicationResolver = factoryCommonServices.PublicationResolver; Configuration = factoryCommonServices.Configuration; CacheAgent = factoryCommonServices.CacheAgent; }
public FactoryBase(IFactoriesFacade facade) { if (facade == null) { throw new ArgumentNullException("facade"); } LoggerService = facade.Logger; PublicationResolver = facade.PublicationResolver; Configuration = facade.Configuration; CacheAgent = facade.CacheAgent; SerializerService = facade.SerializerService; CacheAgent.GetLastPublishDateCallBack = GetLastPublishedDateCallBack; }
public TridionSiteMapProvider(IPageFactory pageFactory, ICacheAgent cacheAgent, ILogger logger, IDD4TConfiguration configuration) { if (pageFactory == null) throw new ArgumentNullException("pageFactory"); if (logger == null) throw new ArgumentNullException("logger"); if (configuration == null) throw new ArgumentNullException("configuration"); if (cacheAgent == null) throw new ArgumentNullException("cacheAgent"); _pageFactory = pageFactory; _configuration = configuration; _cacheAgent = cacheAgent; _logger = logger; }
public FactoryCommonServices(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration, ICacheAgent cacheAgent) { if (resolver == null) throw new ArgumentNullException("resolver"); if (logger == null) throw new ArgumentNullException("logger"); if (configuration == null) throw new ArgumentNullException("configuration"); if (cacheAgent == null) throw new ArgumentNullException("cacheAgent"); Logger = logger; PublicationResolver = resolver; Configuration = configuration; CacheAgent = cacheAgent; }
public FactoriesFacade(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration, ICacheAgent cacheAgent, ISerializerService serializerService) { if (resolver == null) throw new ArgumentNullException("resolver"); if (logger == null) throw new ArgumentNullException("logger"); if (configuration == null) throw new ArgumentNullException("configuration"); if (cacheAgent == null) throw new ArgumentNullException("cacheAgent"); if (serializerService == null) throw new ArgumentNullException("serializerService"); SerializerService = serializerService; Logger = logger; PublicationResolver = resolver; Configuration = configuration; CacheAgent = cacheAgent; }
public TridionSiteMapProvider(IPageFactory pageFactory, ICacheAgent cacheAgent, ILogger logger, IDD4TConfiguration configuration) { if (pageFactory == null) { throw new ArgumentNullException("pageFactory"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } if (cacheAgent == null) { throw new ArgumentNullException("cacheAgent"); } _pageFactory = pageFactory; _configuration = configuration; _cacheAgent = cacheAgent; _logger = logger; }
public TridionSiteMap(IPageFactory pageFactory, ICacheAgent cache) { this._pageFactory = pageFactory; this._cache = cache; }
public WeixinAuthorityRepository(ICacheAgent <WeixinAuthorityEntity> cacheAgent) { _cacheAgent = cacheAgent; }
public JMSListener(ILogger logger, ICacheAgent cacheAgent) { CacheAgents = new List<ICacheAgent>(); CacheAgents.Add(cacheAgent); Logger = logger; }
public void SubscribeCacheAgent(ICacheAgent cacheAgent) { CacheAgents.Add(cacheAgent); }
public JMSListener(ILogger logger, ICacheAgent cacheAgent) { CacheAgents = new List <ICacheAgent>(); CacheAgents.Add(cacheAgent); Logger = logger; }
public DD4TCacheProvider() { _cacheAgent = (ICacheAgent)DependencyResolver.Current.GetService(typeof(ICacheAgent)); }
public void SubscribeCacheAgent(ICacheAgent cacheAgent) { CacheAgents.Add(cacheAgent); }