C# 클래스 PleaseIgnore.IntelMap.IntelChannel

상속: System.ComponentModel.Component
파일 보기 프로젝트 열기: EtherealWake/test-intel 1 사용 예제들

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