diff --git a/samples/LiveChat/Commands/COMMAND_CON.cs b/samples/LiveChat/Commands/COMMAND_CON.cs
index 23dcad368..7bdc92b11 100644
--- a/samples/LiveChat/Commands/COMMAND_CON.cs
+++ b/samples/LiveChat/Commands/COMMAND_CON.cs
@@ -1,4 +1,4 @@
-
+using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using SuperSocket;
@@ -17,7 +17,7 @@ public CON(RoomService roomService)
_roomService = roomService;
}
- public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package)
+ public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package, CancellationToken cancellationToken)
{
session.Name = package.Body;
await _roomService.EnterRoom(session);
diff --git a/samples/LiveChat/Commands/MSG.cs b/samples/LiveChat/Commands/MSG.cs
index 58b615483..ca3702f03 100644
--- a/samples/LiveChat/Commands/MSG.cs
+++ b/samples/LiveChat/Commands/MSG.cs
@@ -1,4 +1,4 @@
-
+using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using SuperSocket;
@@ -17,7 +17,7 @@ public MSG(RoomService roomService)
_roomService = roomService;
}
- public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package)
+ public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package, CancellationToken cancellationToken)
{
await _roomService.BroadcastMessage(session, package.Body);
}
diff --git a/samples/LiveChat/LiveChat.csproj b/samples/LiveChat/LiveChat.csproj
index da5a72b20..1c9cd4519 100644
--- a/samples/LiveChat/LiveChat.csproj
+++ b/samples/LiveChat/LiveChat.csproj
@@ -13,7 +13,7 @@
-
+