mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-23 05:13:06 +08:00
Add low level client.
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
using System;
|
||||
using MQTTnet.Diagnostics;
|
||||
using MQTTnet.Diagnostics;
|
||||
using System;
|
||||
|
||||
namespace MQTTnet.Tests.Mockups
|
||||
{
|
||||
public class TestLogger : IMqttNetLogger, IMqttNetChildLogger
|
||||
public class TestLogger : IMqttNetLogger
|
||||
{
|
||||
public event EventHandler<MqttNetLogMessagePublishedEventArgs> LogMessagePublished;
|
||||
|
||||
IMqttNetChildLogger IMqttNetLogger.CreateChildLogger(string source)
|
||||
public IMqttNetLogger CreateChildLogger(string source = null)
|
||||
{
|
||||
return new MqttNetChildLogger(this, source);
|
||||
}
|
||||
|
||||
IMqttNetChildLogger IMqttNetChildLogger.CreateChildLogger(string source)
|
||||
{
|
||||
return new MqttNetChildLogger(this, source);
|
||||
return new TestLogger();
|
||||
}
|
||||
|
||||
public void Verbose(string message, params object[] parameters)
|
||||
@@ -36,5 +31,10 @@ namespace MQTTnet.Tests.Mockups
|
||||
public void Publish(MqttNetLogLevel logLevel, string source, string message, object[] parameters, Exception exception)
|
||||
{
|
||||
}
|
||||
|
||||
public void Publish(MqttNetLogLevel logLevel, string message, object[] parameters, Exception exception)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user