C# Class IPBan.IPBanService

Inheritance: System.ServiceProcess.ServiceBase
Datei anzeigen Open project: jjxtra/Windows-IP-Ban-Service Class Usage Examples

Public Methods

Method Description
IPBanService ( ) : System
Main ( string args ) : void
RunConsole ( string args ) : void
RunService ( string args ) : void

Protected Methods

Method Description
OnStart ( string args ) : void
OnStop ( ) : void

Private Methods

Method Description
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

Method Details

IPBanService() public method

public IPBanService ( ) : System
return System

Main() public static method

public static Main ( string args ) : void
args string
return void

OnStart() protected method

protected OnStart ( string args ) : void
args string
return void

OnStop() protected method

protected OnStop ( ) : void
return void

RunConsole() public static method

public static RunConsole ( string args ) : void
args string
return void

RunService() public static method

public static RunService ( string args ) : void
args string
return void