示例#1
0
文件: ServiceIDs.cs 项目: subor/sdk
 /// <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());
 }
示例#2
0
文件: ServiceIDs.cs 项目: subor/sdk
 /// <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());
 }
示例#3
0
文件: ServiceIDs.cs 项目: subor/sdk
 /// <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());
 }