Ejemplo n.º 1
0
 /// <summary>
 /// Allows derived classes to convert the event id to string if they are using strongly
 /// typed convetible enums. By default this level just calls int.ToString(). It will also
 /// make the logs more readeable
 /// </summary>
 /// <param name="id">The id to convert to string</param>
 /// <returns></returns>
 protected string GetCachedEventId(int id)
 {
     return(SpTools.GetIdString(id, this.eventIdCache, this.idConverter.EventId));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Allows derived classes to convert the message id to string if they are using strongly
 /// typed convetible enums. By default this level just calls int.ToString(). It will also
 /// make the logs more readeable
 /// </summary>
 /// <param name="id">The message id to convert to string</param>
 /// <returns></returns>
 protected string GetCachedMsgTypeId(int id)
 {
     return(SpTools.GetIdString(id, this.msgIdCache, this.idConverter.MsgTypeId));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Allows derived classes to convert the type to string if they are using strongly
 /// typed convetible enums. By default this level just calls int.ToString() so you
 /// would end up with a name chaine some like '2.4.12'
 /// </summary>
 /// <param name="id">The id to convert to string</param>
 /// <returns></returns>
 protected string GetCachedStateId(int id)
 {
     return(SpTools.GetIdString(id, this.stateIdCache, this.idConverter.StateId));
 }