public MqttBrokerConnector(IComponentDiscovery components, ISystemComponentIdProvider systemComponentIdProvider) { this.components = Preconditions.CheckNotNull(components); this.systemComponentIdProvider = Preconditions.CheckNotNull(systemComponentIdProvider); // because of the circular dependency between MqttBridgeConnector and the producers, // in this loop the producers get the IMqttBridgeConnector reference: foreach (var producer in components.Producers) { producer.SetConnector(this); } }
public DisposableMqttBrokerConnector(IComponentDiscovery components, ISystemComponentIdProvider systemComponentIdProvider) : base(components, systemComponentIdProvider) { }