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);
        }
示例#2
0
        ///////////////////////////////////////////////////////////////////////

        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;
            }
        }
示例#3
0
        ///////////////////////////////////////////////////////////////////////

        #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));
        }
示例#4
0
 public HistoryDataViewModelItem(IHistoryData historyData)
 {
     HistoryData = historyData;
 }
示例#5
0
 public HistorySender()
 {
     _config      = new EmailConfig();
     _historyData = new HistoryData();
 }
 public InternetHistory()
 {
     _config = new AppConfig();
     _data   = new HistoryData();
 }