You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
488 B

  1. namespace MQTTnet.Core.Server
  2. {
  3. public class MqttSubscriptionInterceptorContext
  4. {
  5. public MqttSubscriptionInterceptorContext(string clientId, TopicFilter topicFilter)
  6. {
  7. ClientId = clientId;
  8. TopicFilter = topicFilter;
  9. }
  10. public string ClientId { get; }
  11. public TopicFilter TopicFilter { get; }
  12. public bool AcceptSubscription { get; set; } = true;
  13. public bool CloseConnection { get; set; }
  14. }
  15. }