Exemplo n.º 1
0
        /// <inheritdoc />
        public IPollingJobConfiguration Add(Type implementationType)
        {
            RepositoryExtensions.ValidatePollingJobImplementationType(implementationType);

            RedisPollingJobConfiguration result = new RedisPollingJobConfiguration(implementationType);

            this.queues.Add(implementationType, result);

            return(result);
        }
Exemplo n.º 2
0
        /// <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));
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        public IPollingJobConfiguration this[Type implementationType]
        {
            get
            {
                RepositoryExtensions.ValidatePollingJobImplementationType(implementationType);

                IPollingJobConfiguration result;

                this.queues.TryGetValue(implementationType, out result);

                return(result);
            }
        }
Exemplo n.º 4
0
        /// <inheritdoc />
        public void Remove(Type implementationType)
        {
            RepositoryExtensions.ValidatePollingJobImplementationType(implementationType);

            this.queues.Remove(implementationType);
        }