public PersistentConnectionPeekWorker(PusherRegistry pusherRegistry,
                                       IMessagingOperations outgoingMessageReader, IBatchParameters batchParameters)
     : base(
         pusherRegistry, outgoingMessageReader, batchParameters.PersistentConnectionMessagePeekCollectionTime,
         batchParameters.PersistentConnectionMessagePeekCollectionBatch)
 {
 }
 protected PersistentConnectionWorker(PusherRegistry pusherRegistry, IMessagingOperations outgoingMessageReader, TimeSpan batchWaitTimeLimit, int batchWaitSizeLimit)
 {
     _pusherRegistry          = pusherRegistry;
     _outgoingMessageReader   = outgoingMessageReader;
     _batchWaitTimeLimit      = batchWaitTimeLimit;
     _batchWaitSizeLimit      = batchWaitSizeLimit;
     _cancellationTokenSource = new CancellationTokenSource();
     _taskEndWaitEvent        = new AutoResetEvent(false);
     _taskStartWaitEvent      = new AutoResetEvent(false);
 }
Example #3
0
 public CommandExecutor(PusherRegistry pusherRegistry, ConnectionRegistry connectionRegistry, IMessagingOperations outgoingMessageReader, IDeviceAuthenticator deviceAuthenticator, IDeviceOperations deviceOperations, MessagingService messagingService, ITelemetryDataService telemetryDataService)
 {
     _pusherRegistry        = pusherRegistry;
     _connectionRegistry    = connectionRegistry;
     _outgoingMessageReader = outgoingMessageReader;
     _deviceAuthenticator   = deviceAuthenticator;
     _deviceOperations      = deviceOperations;
     _messagingService      = messagingService;
     _telemetryDataService  = telemetryDataService;
 }
Example #4
0
 public MessagingService(IMessagingOperations messagingOperations, IDeviceOperations deviceOperations)
 {
     _messagingOperations = messagingOperations;
     _deviceOperations    = deviceOperations;
 }