Ejemplo n.º 1
0
        public ActorContext(IEventStoreConnection connection, string queue, int workers = 1)
        {
            _connection = connection;
            _queue = queue;
            _deadQueue = queue + "-dead";
            _workers = new ActorWorker[workers];

            for (int i = 0; i < workers; i++)
                _workers[i] = new ActorWorker(Dead);
        }
Ejemplo n.º 2
0
        public ActorContext(IEventStoreConnection connection, string queue, int workers = 1)
        {
            _connection = connection;
            _queue      = queue;
            _deadQueue  = queue + "-dead";
            _workers    = new ActorWorker[workers];

            for (int i = 0; i < workers; i++)
            {
                _workers[i] = new ActorWorker(Dead);
            }
        }