Exemplo n.º 1
0
 public DistributionService(IHubContext <CheckpointsHub> checkpointsHub, IMessageHub messageHub, StorageService storageService)
 {
     this.checkpointsHub = checkpointsHub;
     this.storageService = storageService;
     disposable          = new CompositeDisposable(
         messageHub.SubscribeDisposable <Checkpoint>(OnCheckpoint),
         messageHub.SubscribeDisposable <ReaderStatus>(OnReaderStatus),
         messageHub.SubscribeDisposable <RfidOptions>(OnRfidOptions));
 }