mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
24 lines
861 B
C#
24 lines
861 B
C#
using System;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttServerOptions : IMqttServerOptions
|
|
{
|
|
public MqttServerDefaultEndpointOptions DefaultEndpointOptions { get; } = new MqttServerDefaultEndpointOptions();
|
|
|
|
public MqttServerTlsEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsEndpointOptions();
|
|
|
|
public int ConnectionBacklog { get; set; } = 10;
|
|
|
|
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(15);
|
|
|
|
public Action<MqttConnectionValidatorContext> ConnectionValidator { get; set; }
|
|
|
|
public Action<MqttApplicationMessageInterceptorContext> ApplicationMessageInterceptor { get; set; }
|
|
|
|
public Action<MqttSubscriptionInterceptorContext> SubscriptionInterceptor { get; set; }
|
|
|
|
public IMqttServerStorage Storage { get; set; }
|
|
}
|
|
}
|