mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
13 lines
458 B
C#
13 lines
458 B
C#
using MQTTnet.Core.Server;
|
|
|
|
namespace MQTTnet.Core.Tests
|
|
{
|
|
public class TestClientSessionFactory : IMqttClientSesssionFactory
|
|
{
|
|
public MqttClientSession CreateClientSession(string sessionId, MqttClientSessionsManager mqttClientSessionsManager)
|
|
{
|
|
return new MqttClientSession(sessionId, mqttClientSessionsManager, new TestLogger<MqttClientSession>(), new TestLogger<MqttClientPendingMessagesQueue>());
|
|
}
|
|
}
|
|
}
|