Ejemplo n.º 1
0
        public static void LogMessaging(Message m, BotIdentifier botId, bool sending)
        {
            var messageType = m.GetType().Name;
            var bid         = botId.ToString();

            Logger.Verbose("[{0}] {1} {2,-24} {3,-5} {4} ",
                           sending ? "S" : "R",
                           sending ? "--->" : "<---",
                           messageType,
                           sending ? "to" : "from",
                           bid.Substring(0, Math.Min(12, bid.Length))
                           );
        }
Ejemplo n.º 2
0
 private string GetConfigFileNameFor(BotIdentifier botId)
 {
     return("_tmp" + botId.ToString().Substring(0, 10));
 }