Switch SubscribeAsync/UnsubscribeAsync to IEnumerable<string> (#2026)

The function currently requires an ICollection<string>, but doesn't actually depend on the ICollection<string> interface.  Relax the requirement to be IEnumerable<string> for better flexibility.
This commit is contained in:
drelidan7
2024-06-22 14:55:20 +02:00
committed by GitHub
parent c5f4cf1f9b
commit b95d352236
2 changed files with 4 additions and 4 deletions
@@ -47,8 +47,8 @@ namespace MQTTnet.Extensions.ManagedClient
Task StopAsync(bool cleanDisconnect = true);
Task SubscribeAsync(ICollection<MqttTopicFilter> topicFilters);
Task SubscribeAsync(IEnumerable<MqttTopicFilter> topicFilters);
Task UnsubscribeAsync(ICollection<string> topics);
Task UnsubscribeAsync(IEnumerable<string> topics);
}
}