mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 18:43:10 +08:00
Fix build errors.
This commit is contained in:
@@ -25,6 +25,7 @@ namespace MQTTnet.Tests.Server
|
||||
|
||||
var session = new MqttSession(
|
||||
"",
|
||||
false,
|
||||
new ConcurrentDictionary<object, object>(),
|
||||
options,
|
||||
eventContainer,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
@@ -45,7 +45,7 @@ namespace MQTTnet.Tests.Server
|
||||
{
|
||||
e.ApplicationMessage.Payload =
|
||||
Encoding.UTF8.GetBytes(
|
||||
e.SessionItems["default_payload"] as string ?? String.Empty);
|
||||
e.SessionItems["default_payload"] as string ?? string.Empty);
|
||||
|
||||
return Task.CompletedTask;
|
||||
};
|
||||
@@ -192,7 +192,7 @@ namespace MQTTnet.Tests.Server
|
||||
{
|
||||
c.AutoAcknowledge = false;
|
||||
++count;
|
||||
Console.WriteLine("process");
|
||||
System.Console.WriteLine("process");
|
||||
return Task.CompletedTask;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user