Add ClientId for application messages published by the server.

This commit is contained in:
Christian Kratky
2019-04-24 21:37:29 +02:00
parent 9da3377aa7
commit 6ed3b0cedd
4 changed files with 21 additions and 2 deletions
@@ -147,6 +147,15 @@ namespace MQTTnet.Server
return this;
}
/// <summary>
/// Gets or sets the client ID which is used when publishing messages from the server directly.
/// </summary>
public MqttServerOptionsBuilder WithClientId(string value)
{
_options.ClientId = value;
return this;
}
public IMqttServerOptions Build()
{
return _options;