您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MqttClientConnectedEventArgs.cs 548 B

1234567891011121314151617
  1. using System;
  2. namespace MQTTnet.Core.Adapter
  3. {
  4. public class MqttClientConnectedEventArgs : EventArgs
  5. {
  6. public MqttClientConnectedEventArgs(string identifier, IMqttCommunicationAdapter clientAdapter)
  7. {
  8. Identifier = identifier ?? throw new ArgumentNullException(nameof(identifier));
  9. ClientAdapter = clientAdapter ?? throw new ArgumentNullException(nameof(clientAdapter));
  10. }
  11. public string Identifier { get; }
  12. public IMqttCommunicationAdapter ClientAdapter { get; }
  13. }
  14. }