Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 /// <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));
 }
Exemplo n.º 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));
 }