C# 클래스 IPBan.IPBanService

상속: System.ServiceProcess.ServiceBase
파일 보기 프로젝트 열기: jjxtra/Windows-IP-Ban-Service 1 사용 예제들

공개 메소드들

메소드 설명
IPBanService ( ) : System
Main ( string args ) : void
RunConsole ( string args ) : void
RunService ( string args ) : void

보호된 메소드들

메소드 설명
OnStart ( string args ) : void
OnStop ( ) : void

비공개 메소드들

메소드 설명
CheckForExpiredIP ( ) : void
CreateRules ( ) : void
DelayTest ( object stateInfo ) : void
DeleteRules ( int ipAddressCount ) : void
EventRecordWritten ( object sender, System.Diagnostics.Eventing.Reader.EventRecordWrittenEventArgs e ) : void
ExecuteBanScript ( ) : void
ExtractIPAddressFromXml ( XmlDocument doc ) : string
GetQueryString ( ) : string
GetRuleName ( ) : string
Initialize ( ) : void
LogInitialConfig ( ) : void
ParseXml ( string xml ) : XmlDocument
ProcessBanFileOnStart ( ) : void
ProcessIPAddress ( string ipAddress, XmlDocument doc ) : void
ProcessXml ( string xml ) : void
ReadAppSettings ( ) : void
RunScript ( ) : void
RunTests ( ) : void
ServiceThread ( ) : void
SetupWatcher ( ) : void
TestRemoteDesktopAttemptWithPAddress ( string ipAddress, int count ) : void

메소드 상세

IPBanService() 공개 메소드

public IPBanService ( ) : System
리턴 System

Main() 공개 정적인 메소드

public static Main ( string args ) : void
args string
리턴 void

OnStart() 보호된 메소드

protected OnStart ( string args ) : void
args string
리턴 void

OnStop() 보호된 메소드

protected OnStop ( ) : void
리턴 void

RunConsole() 공개 정적인 메소드

public static RunConsole ( string args ) : void
args string
리턴 void

RunService() 공개 정적인 메소드

public static RunService ( string args ) : void
args string
리턴 void