C# 클래스 winsw.Util.SigIntHelper

파일 보기 프로젝트 열기: kohsuke/winsw 1 사용 예제들

공개 메소드들

메소드 설명
SendSIGINTToProcess ( Process process, System.TimeSpan shutdownTimeout ) : bool

Uses the native funciton "AttachConsole" to attach the thread to the executing process to try to trigger a CTRL_C event (SIGINT). If the application doesn't honor the event and shut down gracefully, the. wait period will time out after 15 seconds.

비공개 메소드들

메소드 설명
AttachConsole ( uint dwProcessId ) : bool
FreeConsole ( ) : bool
GenerateConsoleCtrlEvent ( CtrlTypes dwCtrlEvent, uint dwProcessGroupId ) : bool
SetConsoleCtrlHandler ( ConsoleCtrlDelegate HandlerRoutine, bool Add ) : bool

메소드 상세

SendSIGINTToProcess() 공개 정적인 메소드

Uses the native funciton "AttachConsole" to attach the thread to the executing process to try to trigger a CTRL_C event (SIGINT). If the application doesn't honor the event and shut down gracefully, the. wait period will time out after 15 seconds.
public static SendSIGINTToProcess ( Process process, System.TimeSpan shutdownTimeout ) : bool
process System.Diagnostics.Process The process to attach to and send the SIGINT
shutdownTimeout System.TimeSpan
리턴 bool