/// <summary>
 /// 消息通过路径指定的次数后路径即消失
 /// </summary>
 public static IMessagePathId BuildViaTimesLimitPath <TMessage>(string description, LogEnum logType, Action <TMessage> path, int viaTimesLimit, Type location)
 {
     return(MessagePath <TMessage> .AddMessagePath(MessageHub, location, description, logType, path, pathId : PathId.Empty, viaTimesLimit : viaTimesLimit));
 }
 /// <summary>
 /// 消息通过路径一次后路径即消失。
 /// 注意该路径具有特定的路径标识pathId,pathId可以看作是路径的形状,只有和该路径的形状相同的消息才能通过路径。
 /// </summary>
 public static IMessagePathId BuildOnecePath <TMessage>(string description, LogEnum logType, Action <TMessage> path, PathId pathId, Type location)
 {
     return(MessagePath <TMessage> .AddMessagePath(MessageHub, location, description, logType, path, pathId, viaTimesLimit : 1));
 }
示例#3
0
 public static IMessagePathId AddViaLimitPath <TMessage>(string description, LogEnum logType, Action <TMessage> action, int viaLimit, Type location)
 {
     return(MessagePath <TMessage> .AddMessagePath(MessageHub, location, description, logType, action, Guid.Empty, viaLimit));
 }
 /// <summary>
 /// 修建消息的运动路径
 /// </summary>
 public static IMessagePathId BuildMessagePath <TMessage>(string description, LogEnum logType, Action <TMessage> path, Type location)
 {
     return(MessagePath <TMessage> .AddMessagePath(MessageHub, location, description, logType, path, pathId : PathId.Empty));
 }
示例#5
0
 public static IMessagePathId AddOnecePath <TMessage>(string description, LogEnum logType, Action <TMessage> action, Guid pathId, Type location)
 {
     return(MessagePath <TMessage> .AddMessagePath(MessageHub, location, description, logType, action, pathId, viaLimit : 1));
 }