mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 17:22:37 +08:00
Add new overload for server options builder.
This commit is contained in:
@@ -164,6 +164,12 @@ namespace MQTTnet.Server
|
|||||||
_options.ConnectionValidator = new MqttServerConnectionValidatorDelegate(value);
|
_options.ConnectionValidator = new MqttServerConnectionValidatorDelegate(value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MqttServerOptionsBuilder WithConnectionValidator(Func<MqttConnectionValidatorContext, Task> value)
|
||||||
|
{
|
||||||
|
_options.ConnectionValidator = new MqttServerConnectionValidatorDelegate(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public MqttServerOptionsBuilder WithDisconnectedInterceptor(IMqttServerClientDisconnectedHandler value)
|
public MqttServerOptionsBuilder WithDisconnectedInterceptor(IMqttServerClientDisconnectedHandler value)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user