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;
        }
Exemplo n.º 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;
        }