/// <summary> /// Create an instance of the Subscriber based upon the Agent configuration settings. /// </summary> /// <param name="agentConfig">Agent configuration settings.</param> /// <exception cref="System.ArgumentException">agentConfig parameter is null.</exception> public WithDependentsCachingSubscriber(AgentConfig agentConfig) : base(agentConfig) { agentConfig.GetAgentProperties(agentProperties); if (log.IsDebugEnabled) { log.Debug("Subscriber " + this.GetType().Name + " has a cache expiry period of " + ExpiryPeriod + " and expiry strategy of " + ExpiryStrategy + "."); } }
/// <summary> /// Create an instance of the Publisher based upon the Agent configuration settings. /// </summary> /// <param name="agentConfig">Agent configuration settings.</param> /// <exception cref="System.ArgumentException">agentConfig parameter is null.</exception> public GenericPublisher(AgentConfig agentConfig) { if (agentConfig == null) { throw new ArgumentException("agentConfig parameter is null."); } AgentConfiguration = agentConfig; AgentConfiguration.GetAgentProperties(agentProperties); }