|
|
@@ -163,6 +163,18 @@ namespace MQTTnet.Server |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
public MqttServerOptionsBuilder WithDisconnectedInterceptor(IMqttServerClientDisconnectedHandler value) |
|
|
|
{ |
|
|
|
_options.ClientDisconnectedInterceptor = value; |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
public MqttServerOptionsBuilder WithDisconnectedInterceptor(Action<MqttServerClientDisconnectedEventArgs> value) |
|
|
|
{ |
|
|
|
_options.ClientDisconnectedInterceptor = new MqttServerClientDisconnectedHandlerDelegate(value); |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
public MqttServerOptionsBuilder WithApplicationMessageInterceptor(IMqttServerApplicationMessageInterceptor value) |
|
|
|
{ |
|
|
|
_options.ApplicationMessageInterceptor = value; |
|
|
|