コード例 #1
0
ファイル: WebSocket.cs プロジェクト: won21kr/embedio
 /// <inheritdoc />
 public Task CloseAsync(CancellationToken ct) =>
 SystemWebSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, string.Empty, ct);
コード例 #2
0
ファイル: WebSocket.cs プロジェクト: wcy-fmt/embedio
 /// <inheritdoc />
 public Task CloseAsync(Net.CloseStatusCode code, string comment = null, CancellationToken cancellationToken = default) =>
 SystemWebSocket.CloseAsync(MapCloseStatus(code), comment ?? string.Empty, cancellationToken);