示例#1
0
    private MqttQualityOfServiceLevel GetMqttQualityOfServiceLevel(QualityOfServiceLevel serviceLevel)
    {
        switch (serviceLevel)
        {
        case QualityOfServiceLevel.ExactlyOnce:
            return(MqttQualityOfServiceLevel.ExactlyOnce);

        case QualityOfServiceLevel.AtLeastOnce:
            return(MqttQualityOfServiceLevel.AtLeastOnce);

        case QualityOfServiceLevel.AtMostOnce:
            return(MqttQualityOfServiceLevel.AtMostOnce);

        default:
            return(MqttQualityOfServiceLevel.AtLeastOnce);
        }
    }
示例#2
0
 public TopicAttribute(string topicName, QualityOfServiceLevel serviceLevel = QualityOfServiceLevel.AtLeastOnce)
 {
     TopicName    = topicName;
     ServiceLevel = serviceLevel;
 }
 public static extern DispatchQueue dispatch_get_global_queue(QualityOfServiceLevel identifier, ulong flags);