/// <summary> /// work ID of the service /// Notice: we treat worker and service as the same mostly in layer0 because currently one service only got one worker. /// </summary> /// <param name="swi">the service ID</param> /// <returns></returns> public static string WorkerID(this ServiceIDs swi) { return("WRK_" + swi.ShortString()); }
/// <summary> /// forwarder ID of the service /// </summary> /// <param name="swi">the service ID</param> /// <returns></returns> public static string ForwarderID(this ServiceIDs swi) { return("FWD_" + swi.ShortString()); }
/// <summary> /// the service publish to topic /// </summary> /// <param name="swi">the service ID</param> public static string PubChannelID(this ServiceIDs swi) { return("service/" + swi.ShortString().ToLower()); }