C# 클래스 PoEWhisperNotifier.LogMonitor

Monitors a log file for changes in the form of appended lines.
파일 보기 프로젝트 열기: Kapps/PoEWhisperNotifier 1 사용 예제들

공개 메소드들

메소드 설명
BeginMonitoring ( ) : void

Begins monitoring the log file for changes.

ChatSymbolForMessageType ( LogMessageType Type ) : string

Returns the chat symbol that corresponds to messages of the given message type, or an empty string if none does.

IsValidLogPath ( string LogPath ) : bool

Indicates whether the given file path points to a valid log file.

LogMonitor ( string LogPath ) : System

Creates a new LogMonitor without immediately starting to monitor changes.

MessageTypeForChatSymbol ( string ChatSymbol ) : LogMessageType

Returns the message type that corresponds to the given chat symbol, or Unknown if none does.

StopMonitoring ( ) : void

Stops monitoring the log file for changes. If any messages are currently being processed, they may still be dispatched.

TryGetDefaultLogPath ( string &LogPath ) : bool

Attempts to location a default client.txt location, using either the standard installation path or the directory PoE is running frmo. Returns whether the client.txt was successfully located.

비공개 메소드들

메소드 설명
RunReadLoop ( ) : void
TryParseChat ( string Line, MessageData &Data ) : bool
TryParseDisconnect ( string Line, MessageData &Data ) : bool

메소드 상세

BeginMonitoring() 공개 메소드

Begins monitoring the log file for changes.
public BeginMonitoring ( ) : void
리턴 void

ChatSymbolForMessageType() 공개 정적인 메소드

Returns the chat symbol that corresponds to messages of the given message type, or an empty string if none does.
public static ChatSymbolForMessageType ( LogMessageType Type ) : string
Type LogMessageType
리턴 string

IsValidLogPath() 공개 정적인 메소드

Indicates whether the given file path points to a valid log file.
public static IsValidLogPath ( string LogPath ) : bool
LogPath string
리턴 bool

LogMonitor() 공개 메소드

Creates a new LogMonitor without immediately starting to monitor changes.
public LogMonitor ( string LogPath ) : System
LogPath string
리턴 System

MessageTypeForChatSymbol() 공개 정적인 메소드

Returns the message type that corresponds to the given chat symbol, or Unknown if none does.
public static MessageTypeForChatSymbol ( string ChatSymbol ) : LogMessageType
ChatSymbol string
리턴 LogMessageType

StopMonitoring() 공개 메소드

Stops monitoring the log file for changes. If any messages are currently being processed, they may still be dispatched.
public StopMonitoring ( ) : void
리턴 void

TryGetDefaultLogPath() 공개 정적인 메소드

Attempts to location a default client.txt location, using either the standard installation path or the directory PoE is running frmo. Returns whether the client.txt was successfully located.
public static TryGetDefaultLogPath ( string &LogPath ) : bool
LogPath string
리턴 bool