Skip to content

Commit

Permalink
修复注释
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Jan 5, 2024
1 parent 28d76f4 commit fb9c299
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public void AddNotifyHandler<T>(string routedPath, Action<T> handler)
/// <typeparam name="T"></typeparam>
/// <param name="routedPath"></param>
/// <param name="handler"></param>
/// <exception cref="InvalidOperationException"></exception>
public void AddNotifyHandler<T>(string routedPath, Action<T, JsonIpcDirectRoutedContext> handler)
{
void HandleNotify(MemoryStream stream, JsonIpcDirectRoutedContext context)
Expand All @@ -129,6 +128,12 @@ void HandleNotify(MemoryStream stream, JsonIpcDirectRoutedContext context)
AddNotifyHandler(routedPath, new NotifyHandler() { SyncHandler = HandleNotify });
}

/// <summary>
/// 添加通知的处理
/// </summary>
/// <param name="routedPath"></param>
/// <param name="notifyHandler"></param>
/// <exception cref="InvalidOperationException"></exception>
private void AddNotifyHandler(string routedPath, NotifyHandler notifyHandler)
{
ThrowIfStarted();
Expand Down

0 comments on commit fb9c299

Please sign in to comment.