internal void LogEditSession(EncDebuggingSessionInfo encDebuggingSessionInfo) { lock (_encEditSessionInfoGuard) { Debug.Assert(_encEditSessionInfo != null); encDebuggingSessionInfo.EndEditSession(_encEditSessionInfo); _encEditSessionInfo = null; } }
internal void EndEditSession(EncEditSessionInfo encEditSessionInfo) { if (encEditSessionInfo.IsEmpty()) { EmptyEditSessions++; } else { EditSessions.Add(encEditSessionInfo); } }
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; }
public static KeyValueLogMessage Create(int sessionId, int editSessionId, EncEditSessionInfo editSession) { return KeyValueLogMessage.Create(m => CreateSessionEditKeyValue(m, sessionId, editSessionId, editSession)); }