public Producer(ManagedQueue <TQueueItem> queue, Func <ICollection <TQueueItem> > action, CancellationToken cancellationToken)
        {
            this.Id = Guid.NewGuid().ToString("N");

            this.action            = action;
            this.queue             = queue;
            this.cancellationToken = cancellationToken;
        }
Пример #2
0
        public Consumer(ManagedQueue <TQueueItem> queue, Action <TQueueItem> action, CancellationToken cancellationToken)
        {
            this.Id = Guid.NewGuid().ToString("N");

            this.action            = action;
            this.queue             = queue;
            this.cancellationToken = cancellationToken;
        }