public void AddRecord(string actionName, long styleItemId, IHistoryData data, long?by) { var text = JsonConvert.SerializeObject(data); _log.Info("AddRecord, actionName=" + actionName + ", data=" + text); AddRecord(actionName, styleItemId, text, by); }
/////////////////////////////////////////////////////////////////////// private /* protected virtual */ void Dispose( bool disposing ) { TraceOps.DebugTrace(String.Format( "Dispose: disposing = {0}, interpreter = {1}, disposed = {2}", disposing, FormatOps.InterpreterNoThrow(interpreter), disposed), typeof(InteractiveContext).Name, TracePriority.CleanupDebug); if (!disposed) { if (disposing) { //////////////////////////////////// // dispose managed resources here... //////////////////////////////////// interpreter = null; /* NOT OWNED: Do not dispose. */ threadId = 0; /////////////////////////////////////////////////////////// interactive = false; interactiveInput = null; previousInteractiveInput = null; interactiveMode = null; activeInteractiveLoops = 0; totalInteractiveLoops = 0; interactiveLoopData = null; interactiveCommandCallback = null; #if HISTORY historyLoadData = null; historySaveData = null; historyInfoFilter = null; historyLoadFilter = null; historySaveFilter = null; historyFileName = null; #endif } ////////////////////////////////////// // release unmanaged resources here... ////////////////////////////////////// disposed = true; } }
/////////////////////////////////////////////////////////////////////// #region Dead Code #if DEAD_CODE private static bool MatchData( IHistoryData historyData, IHistoryFilter historyFilter ) { int levels; HistoryFlags flags; if (historyData != null) { levels = historyData.Levels; flags = historyData.Flags; } else { levels = Level.Invalid; flags = HistoryFlags.None; } return(MatchData(levels, flags, historyFilter)); }
public HistoryDataViewModelItem(IHistoryData historyData) { HistoryData = historyData; }
public HistorySender() { _config = new EmailConfig(); _historyData = new HistoryData(); }
public InternetHistory() { _config = new AppConfig(); _data = new HistoryData(); }