lith 3 년 전
부모
커밋
4407fda818
1개의 변경된 파일17개의 추가작업 그리고 2개의 파일을 삭제
  1. 17 2
      dotnet/Library/Sers/Sers.Core/Sers.Core/Module/PubSub/HotPlugSubscriber.cs

+ 17 - 2
dotnet/Library/Sers/Sers.Core/Sers.Core/Module/PubSub/HotPlugSubscriber.cs

@@ -44,7 +44,9 @@ namespace Sers.Core.Module.PubSub
             OnGetMessage?.Invoke(msgBody);
         }
 
-
+        /// <summary>
+        /// 回调不会在消息线程中执行。 will be invoked in Task.Run(()=>{     });
+        /// </summary>
         public Action<ArraySegment<byte>> OnGetMessage;
 
         #region IDisposable Support
@@ -66,13 +68,26 @@ namespace Sers.Core.Module.PubSub
 
 
         #region static Subscribe
-
+        /// <summary>
+        /// 回调不会在消息线程中执行。 will be invoked in Task.Run(()=>{     });
+        /// </summary>
+        /// <param name="msgTitle"></param>
+        /// <param name="OnMessage"></param>
+        /// <returns></returns>
         public static HotPlugSubscriber Subscribe(string msgTitle, Action<ArraySegment<byte>> OnMessage)
         {
             var subscriber = new HotPlugSubscriber(msgTitle);
             subscriber.OnGetMessage = OnMessage;
             return subscriber;
         }
+
+        /// <summary>
+        /// 回调不会在消息线程中执行。 will be invoked in Task.Run(()=>{     });
+        /// </summary>
+        /// <typeparam name="T"></typeparam>
+        /// <param name="msgTitle"></param>
+        /// <param name="OnMessage"></param>
+        /// <returns></returns>
         public static HotPlugSubscriber Subscribe<T>(string msgTitle, Action<T> OnMessage)
         {
             var subscriber = new HotPlugSubscriber(msgTitle);