C# Class PleaseIgnore.IntelMap.IntelChannel

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: EtherealWake/test-intel Class Usage Examples

Private Properties

Свойство Type Description
ObjectInvariant void
OnPropertyChanged void
timer_Callback void
watcher_Changed void
watcher_Created void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

CloseFile() protected méthode

Closes the log file we are currently monitoring (if any).
protected CloseFile ( ) : void
Résultat void

CreateFileSystemWatcher() protected méthode

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
Résultat System.IO.FileSystemWatcher

Dispose() protected méthode

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. ///
Résultat void

IntelChannel() public méthode

Initializes a new instance of the IntelChannel class.
public IntelChannel ( ) : System
Résultat System

IntelChannel() public méthode

Initializes a new instance of the IntelChannel class with the specified Container.
public IntelChannel ( IContainer container ) : System
container IContainer Optional parent .
Résultat System

IntelChannel() public méthode

Initializes a new instance of the IntelChannel class with the specified Name.
public IntelChannel ( string name ) : System
name string The initial value for .
Résultat System

IntelChannel() public méthode

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 .
Résultat System

OnFileChanged() protected méthode

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. ///
Résultat void

OnFileCreated() protected méthode

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. ///
Résultat void

OnIntelReported() protected méthode

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.
Résultat void

OnPropertyChanged() protected méthode

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.
Résultat void

OnStart() protected méthode

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
Résultat void

OnStop() protected méthode

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
Résultat void

OnTick() protected méthode

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
Résultat void

OpenFile() protected méthode

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.
Résultat bool

ScanFiles() protected méthode

Rescans the active directory looking for valid log files
protected ScanFiles ( ) : bool
Résultat bool

Start() public méthode

Initiate the acquisition of log entries from the EVE chat logs. This method enables IntelReported events.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the IntelChannel from monitoring for new log entries.
public Stop ( ) : void
Résultat void

ToString() public méthode

Returns a System.String that represents this instance of IntelChannel.
public ToString ( ) : string
Résultat string