C# Class VelocityDb.Server.Service

Inheritance: ServiceBase
Mostra file Open project: VelocityDB/VelocityDB Class Usage Examples

Public Properties

Property Type Description
listener TcpListener
stopService bool
tcpListenThread Thread

Public Methods

Method Description
CreateAndStartThreads ( bool asService, int numberOfWorkerThreads ) : void
Service ( ) : System
startAsNonService ( string args ) : void

Protected Methods

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

Private Methods

Method Description
AttachConsole ( int dwProcessId ) : bool
FreeConsole ( ) : bool
GetForegroundWindow ( ) : IntPtr
GetWindowThreadProcessId ( IntPtr hWnd, int &lpdwProcessId ) : uint

Method Details

CreateAndStartThreads() public static method

public static CreateAndStartThreads ( bool asService, int numberOfWorkerThreads ) : void
asService bool
numberOfWorkerThreads int
return void

OnStart() protected method

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

OnStop() protected method

protected OnStop ( ) : void
return void

Service() public method

public Service ( ) : System
return System

startAsNonService() public method

public startAsNonService ( string args ) : void
args string
return void

tcpListen() protected static method

protected static tcpListen ( ) : void
return void

Property Details

listener public_oe static_oe property

public static TcpListener listener
return TcpListener

stopService public_oe static_oe property

public static bool stopService
return bool

tcpListenThread public_oe static_oe property

public static Thread tcpListenThread
return Thread