Example #1
0
 public WorkDocker(IPushBroker <TNotification> broker, IPushConnectionFactory connectionFactory)
 {
     PushBroker        = broker;
     ConnectionFactory = connectionFactory;
     lockWorkers       = new object();
     workers           = new List <ServiceWorkerAdapter <TNotification> >();
     ScaleSize         = 1;
     //AutoScale = true;
     //AutoScaleMaxSize = 20;
 }
Example #2
0
        public PushBroker(IPushConnectionFactory <TNotification> connectionFactory)
        {
            ServiceConnectionFactory = connectionFactory;

            lockWorkers = new object();
            workers     = new List <ServiceWorkerAdapter <TNotification> >();
            running     = false;

            notifications = new BlockingCollection <TNotification>();
            ScaleSize     = 1;
            //AutoScale = true;
            //AutoScaleMaxSize = 20;
        }
Example #3
0
 public PushBroker(IPushConnectionFactory connectionFactory)
 {
     running = false;
     ServiceConnectionFactory = connectionFactory;
 }