Exemple #1
0
        private static void CreateSessionEditKeyValue(Dictionary <string, object> map, int sessionId, int editSessionId, EncEditSessionInfo editSession)
        {
            map[SessionId]     = sessionId;
            map[EditSessionId] = editSessionId;

            map[HadCompilationErrors]         = editSession.HadCompilationErrors;
            map[HadRudeEdits]                 = editSession.HadRudeEdits;
            map[HadValidChanges]              = editSession.HadValidChanges;
            map[HadValidInsignificantChanges] = editSession.HadValidInsignificantChanges;

            map[RudeEditsCount]        = editSession.RudeEdits.Count;
            map[EmitDeltaErrorIdCount] = editSession.EmitDeltaErrorIds != null?editSession.EmitDeltaErrorIds.Count() : 0;
        }
Exemple #2
0
 public static KeyValueLogMessage Create(int sessionId, int editSessionId, EncEditSessionInfo editSession)
 {
     return(KeyValueLogMessage.Create(m => CreateSessionEditKeyValue(m, sessionId, editSessionId, editSession)));
 }