Exemplo n.º 1
0
        protected override void ReadEventLogReferences()
        {
            DateTime beginReadReferences = DateTime.Now;

            _referencesData = new ReferencesData();

            var referencesInfo = LogParser.GetEventLogReferences();

            referencesInfo.ReadReferencesByType(_referencesData._users);
            referencesInfo.ReadReferencesByType(_referencesData._computers);
            referencesInfo.ReadReferencesByType(_referencesData._applications);
            referencesInfo.ReadReferencesByType(_referencesData._events);
            referencesInfo.ReadReferencesByType(_referencesData._metadata);
            referencesInfo.ReadReferencesByType(_referencesData._workServers);
            referencesInfo.ReadReferencesByType(_referencesData._primaryPorts);
            referencesInfo.ReadReferencesByType(_referencesData._secondaryPorts);

            _referencesReadDate = beginReadReferences;

            base.ReadEventLogReferences();
        }
        protected override void ReadEventLogReferences()
        {
            DateTime beginReadReferences = DateTime.Now;

            using (_connection = new SQLiteConnection(ConnectionString))
            {
                _connection.Open();
                _referencesData = new ReferencesData();

                ReadReferencesByType(_referencesData._users, "Select Code, Name, UUID From UserCodes");
                ReadReferencesByType(_referencesData._computers, "Select Code, Name From ComputerCodes");
                ReadReferencesByType(_referencesData._events, "Select Code, Name From EventCodes");
                ReadReferencesByType(_referencesData._metadata, "Select Code, Name, UUID From MetadataCodes");
                ReadReferencesByType(_referencesData._applications, "Select Code, Name From AppCodes");
                ReadReferencesByType(_referencesData._workServers, "Select Code, Name From WorkServerCodes");
                ReadReferencesByType(_referencesData._primaryPorts, "Select Code, Name From PrimaryPortCodes");
                ReadReferencesByType(_referencesData._secondaryPorts, "Select Code, Name From SecondaryPortCodes");

                _referencesReadDate = beginReadReferences;
            }

            base.ReadEventLogReferences();
        }
Exemplo n.º 3
0
 public virtual void Dispose()
 {
     _referencesData = null;
     _currentRow     = null;
 }