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; }
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; }
public PushBroker(IPushConnectionFactory connectionFactory) { running = false; ServiceConnectionFactory = connectionFactory; }