C# Класс PleaseIgnore.IntelMap.IntelChannel

Наследование: System.ComponentModel.Component
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ObjectInvariant void
OnPropertyChanged void
timer_Callback void
watcher_Changed void
watcher_Created void

Открытые методы

Метод Описание
IntelChannel ( ) : System

Initializes a new instance of the IntelChannel class.

IntelChannel ( IContainer container ) : System

Initializes a new instance of the IntelChannel class with the specified Container.

IntelChannel ( string name ) : System

Initializes a new instance of the IntelChannel class with the specified Name.

IntelChannel ( string name, IContainer container ) : System

Initializes a new instance of the IntelChannel class with the specified Name and Container.

Start ( ) : void

Initiate the acquisition of log entries from the EVE chat logs. This method enables IntelReported events.

Stop ( ) : void

Stops the IntelChannel from monitoring for new log entries.

ToString ( ) : string

Returns a System.String that represents this instance of IntelChannel.

Защищенные методы

Метод Описание
CloseFile ( ) : void

Closes the log file we are currently monitoring (if any).

CreateFileSystemWatcher ( ) : FileSystemWatcher

Creates the instance of FileSystemWatcher used to monitor the file system.

CreateFileSystemWatcher will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the IntelChannel and optionally releases the managed resources.

OnFileChanged ( FileSystemEventArgs e ) : void

Called when a log file associated with the channel we are monitoring has been modified.

OnFileChanged will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OnFileCreated ( FileSystemEventArgs e ) : void

Called when a new log file is created for the channel we are monitoring.

OnFileCreated will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OnIntelReported ( IntelEventArgs e ) : void

Raises the IntelReported event.

OnIntelReported will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

OnPropertyChanged(PropertyChangedEventArgs) will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OnStart ( ) : void

Called after Start has been called.

OnStart will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OnStop ( ) : void

Called after Stop has been called.

OnStop will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OnTick ( ) : void

Called every couple of seconds to sweep the log file for new entries.

OnTick will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.

OpenFile ( FileInfo fileInfo ) : bool

Closes the existing log file and opens a new log file.

ScanFiles ( ) : bool

Rescans the active directory looking for valid log files

Приватные методы

Метод Описание
ObjectInvariant ( ) : void
OnPropertyChanged ( string propertyName ) : void

Raises the PropertyChanged event.

timer_Callback ( object state ) : void

Callback for logTimer.

watcher_Changed ( object sender, FileSystemEventArgs e ) : void

Handler for FileSystemWatcher.Created event.

watcher_Created ( object sender, FileSystemEventArgs e ) : void

Handler for FileSystemWatcher.Created event.

Описание методов

CloseFile() защищенный Метод

Closes the log file we are currently monitoring (if any).
protected CloseFile ( ) : void
Результат void

CreateFileSystemWatcher() защищенный Метод

Creates the instance of FileSystemWatcher used to monitor the file system.
CreateFileSystemWatcher will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected CreateFileSystemWatcher ( ) : FileSystemWatcher
Результат System.IO.FileSystemWatcher

Dispose() защищенный Метод

Releases the unmanaged resources used by the IntelChannel and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// to release both managed and unmanaged /// resources; to release only unmanaged /// resources. ///
Результат void

IntelChannel() публичный Метод

Initializes a new instance of the IntelChannel class.
public IntelChannel ( ) : System
Результат System

IntelChannel() публичный Метод

Initializes a new instance of the IntelChannel class with the specified Container.
public IntelChannel ( IContainer container ) : System
container IContainer Optional parent .
Результат System

IntelChannel() публичный Метод

Initializes a new instance of the IntelChannel class with the specified Name.
public IntelChannel ( string name ) : System
name string The initial value for .
Результат System

IntelChannel() публичный Метод

Initializes a new instance of the IntelChannel class with the specified Name and Container.
public IntelChannel ( string name, IContainer container ) : System
name string The initial value for .
container IContainer Optional parent .
Результат System

OnFileChanged() защищенный Метод

Called when a log file associated with the channel we are monitoring has been modified.
OnFileChanged will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnFileChanged ( FileSystemEventArgs e ) : void
e System.IO.FileSystemEventArgs Instance of /// describing the modified file. ///
Результат void

OnFileCreated() защищенный Метод

Called when a new log file is created for the channel we are monitoring.
OnFileCreated will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnFileCreated ( FileSystemEventArgs e ) : void
e System.IO.FileSystemEventArgs /// Instance of describing the /// new file. ///
Результат void

OnIntelReported() защищенный Метод

Raises the IntelReported event.
OnIntelReported will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnIntelReported ( IntelEventArgs e ) : void
e IntelEventArgs Arguments for the event being raised.
Результат void

OnPropertyChanged() защищенный Метод

Raises the PropertyChanged event.
OnPropertyChanged(PropertyChangedEventArgs) will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs Arguments for the event being raised.
Результат void

OnStart() защищенный Метод

Called after Start has been called.
OnStart will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnStart ( ) : void
Результат void

OnStop() защищенный Метод

Called after Stop has been called.
OnStop will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnStop ( ) : void
Результат void

OnTick() защищенный Метод

Called every couple of seconds to sweep the log file for new entries.
OnTick will be called from within a synchronized context so derived classes should not attempt to perform any additional synchronization themselves.
protected OnTick ( ) : void
Результат void

OpenFile() защищенный Метод

Closes the existing log file and opens a new log file.
protected OpenFile ( FileInfo fileInfo ) : bool
fileInfo System.IO.FileInfo The new log file to track.
Результат bool

ScanFiles() защищенный Метод

Rescans the active directory looking for valid log files
protected ScanFiles ( ) : bool
Результат bool

Start() публичный Метод

Initiate the acquisition of log entries from the EVE chat logs. This method enables IntelReported events.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops the IntelChannel from monitoring for new log entries.
public Stop ( ) : void
Результат void

ToString() публичный Метод

Returns a System.String that represents this instance of IntelChannel.
public ToString ( ) : string
Результат string