/// <inheritdoc /> public IPollingJobConfiguration Add(Type implementationType) { RepositoryExtensions.ValidatePollingJobImplementationType(implementationType); RedisPollingJobConfiguration result = new RedisPollingJobConfiguration(implementationType); this.queues.Add(implementationType, result); return(result); }
/// <inheritdoc /> public void AddCopy(IPollingJobConfiguration source) { if (source == null) { throw new ArgumentNullException("source"); } RepositoryExtensions.ValidatePollingJobImplementationType(source.ImplementationType); this.queues.Add(source.ImplementationType, new RedisPollingJobConfiguration(source)); }
/// <inheritdoc /> public IPollingJobConfiguration this[Type implementationType] { get { RepositoryExtensions.ValidatePollingJobImplementationType(implementationType); IPollingJobConfiguration result; this.queues.TryGetValue(implementationType, out result); return(result); } }
/// <inheritdoc /> public void Remove(Type implementationType) { RepositoryExtensions.ValidatePollingJobImplementationType(implementationType); this.queues.Remove(implementationType); }