public void SetConnector(IMqttBrokerConnector connector) => this.Connector = connector;
public void SetConnector(IMqttBrokerConnector connector) => this.connectorGetter.SetResult(connector);
public MqttBrokerProtocolHead(MqttBrokerProtocolHeadConfig config, IMqttBrokerConnector connector) { this.config = Preconditions.CheckNotNull(config); this.connector = Preconditions.CheckNotNull(connector); this.isRunning = 0; }
public void SetConnector(IMqttBrokerConnector connector) { this.connector = connector; this.connector.OnConnected += async(sender, args) => await this.OnConnect(); }
public void SetConnector(IMqttBrokerConnector connector) { this.connector = connector; this.connector.EnsureConnected.ContinueWith(_ => this.OnConnect()); }