Added interceptor for undelivered messages.

This commit is contained in:
SeppPenner
2020-06-09 20:54:42 +02:00
parent 92518fc4ec
commit 75dfe68a94
8 changed files with 56 additions and 1 deletions
@@ -212,5 +212,11 @@ namespace MQTTnet.Server
{
return _options;
}
public MqttServerOptionsBuilder WithUndeliveredMessageInterceptor(Action<MqttApplicationMessageInterceptorContext> value)
{
_options.UndeliveredMessageInterceptor = new MqttServerApplicationMessageInterceptorDelegate(value);
return this;
}
}
}