Skip to content

Commit ffdbd28

Browse files
committed
nullable reason
1 parent 642a087 commit ffdbd28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

samples/Management/MessagePublisher/Program.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ private static async Task StartAsync(MessagePublisher publisher)
108108
var exist = await publisher.CheckExist(args[1].ToLowerInvariant(), args[2]);
109109
Console.WriteLine(exist ? $"{args[1]} '{args[2]}' exists." : $"{args[1]} '{args[2]}' does not exist.");
110110
}
111+
else if (args.Length == 2 && args[0] == "close")
112+
{
113+
await publisher.CloseConnection(args[1], null);
114+
Console.WriteLine($"Close connection '{args[1]}'.");
115+
}
111116
else
112117
{
113118
Console.WriteLine($"Can't recognize command {argLine}");
@@ -132,7 +137,7 @@ send group <Group Name> <Message>
132137
usergroup add <User Id> <Group Name>
133138
usergroup remove <User Id> <Group Name>
134139
broadcast <Message>
135-
close <Connection ID> <Reason>
140+
close <Connection ID> <Reason>?
136141
checkexist connection <Connection ID>
137142
checkexist user <User ID>
138143
checkexist group <Group Name>

0 commit comments

Comments
 (0)