Example #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);
        }
Example #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);
            }
        }