Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

25 строки
1.0 KiB

  1. using MQTTnet.Client;
  2. using MQTTnet.Protocol;
  3. namespace MQTTnet.Extensions.Rpc.Options.TopicGeneration
  4. {
  5. public sealed class TopicGenerationContext
  6. {
  7. public string MethodName { get; set; }
  8. /// <summary>
  9. /// Gets or sets the quality of service level.
  10. /// The Quality of Service (QoS) level is an agreement between the sender of a message and the receiver of a message that defines the guarantee of delivery for a specific message.
  11. /// There are 3 QoS levels in MQTT:
  12. /// - At most once (0): Message gets delivered no time, once or multiple times.
  13. /// - At least once (1): Message gets delivered at least once (one time or more often).
  14. /// - Exactly once (2): Message gets delivered exactly once (It's ensured that the message only comes once).
  15. /// </summary>
  16. public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
  17. public IMqttClient MqttClient { get; set; }
  18. public IMqttRpcClientOptions Options { get; set; }
  19. }
  20. }