Ejemplo n.º 1
0
 public TransportSenderWorker(IPacketManager packetManager,
                              ITransportAgentInfoService agentInfoService,
                              IConfigurationStoreService configurationStore,
                              string url,
                              TransportSettings settings,
                              ISendStateStore sendStateStore)
     : this(packetManager, agentInfoService, configurationStore, url, new ConstantTransportSettingsProvider(settings), sendStateStore)
 {
 }
Ejemplo n.º 2
0
        public TransportSenderWorker(IPacketManager packetManager,
                                     ITransportAgentInfoService agentInfoService,
                                     IConfigurationStoreService configurationStore,
                                     string url,
                                     TransportSettings settings,
                                     ISendStateStore sendStateStore)
        {
#if NETSTANDARD2_0
            this.httpClient = new HttpClient();
#endif
            this.packetManager      = packetManager;
            this.agentInfoService   = agentInfoService;
            this.configurationStore = configurationStore;
            this.url               = url;
            this.settings          = settings;
            this.sendStateStore    = sendStateStore;
            this.hashAlgorithmFunc = (() => null);
        }