Esempio n. 1
0
 /// <summary> 创建调用消息 </summary>
 /// <param name="invokeMessage"></param>
 /// <returns></returns>
 public static MicroMessage CreateInvokeMessage(InvokeMessage invokeMessage)
 {
     return(new MicroMessage(invokeMessage, ContentTypes.InvokeType)
     {
         Id = Guid.NewGuid().ToString("N")
     });
 }
Esempio n. 2
0
 /// <summary> 创建调用消息 </summary>
 /// <param name="invokeMessage"></param>
 /// <returns></returns>
 public static MicroMessage Create(this InvokeMessage invokeMessage) =>
 MicroMessage.CreateInvokeMessage(invokeMessage);