Beispiel #1
0
 public JobContext(IJobDescriber describer, Guid workerId, WebSocketMessageBroadcaster broadcaster)
 {
     _describer   = describer;
     WorkerId     = workerId;
     _broadcaster = broadcaster;
     _logger      = LogManager.GetLogger(describer.Name);
 }
Beispiel #2
0
 public JobWorkerManager(IHostConifuration cfg,
                         WebSocketMessageBroadcaster broadcaster,
                         IEnumerable <IJobDescriber> describers,
                         IQueue q)
 {
     _q           = q;
     _cfg         = cfg;
     _broadcaster = broadcaster;
     _describers  = describers;
     _ss          = new SemaphoreSlim(_cfg.Capacity, _cfg.MaxCapacity);
     Workers      = new ConcurrentDictionary <Guid, JobWorker>();
 }
Beispiel #3
0
 public ServiceLogger(WebSocketMessageBroadcaster broadcaster)
 {
     _broadcaster = broadcaster;
     _logger      = LogManager.GetLogger(typeof(T).FullName);
 }
Beispiel #4
0
 public TestController(ServiceHost host, WebSocketMessageBroadcaster brocaster)
 {
     _host = host;
 }