C# 클래스 Zazzles.Power

Handle all shutdown requests The windows shutdown command is used instead of the win32 api because it notifies the user prior
파일 보기 프로젝트 열기: FOGProject/zazzles

공개 메소드들

메소드 설명
AbortShutdown ( ) : void

Abort a shutdown if it is not to late

CreateTask ( string parameters ) : void

Create a shutdown command

Hibernate ( ) : void

Hibernate the computer

IsActionPending ( ) : bool
LockWorkStation ( ) : void

Lock the workstation

LogOffUser ( ) : void

Entry off the current user

QueueShutdown ( string parameters, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int gracePeriod = -1 ) : void
Restart ( string comment, Func abortCheckFunc, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
Restart ( string comment, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
Shutdown ( string comment, Func abortCheckFunc, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
Shutdown ( string comment, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void

비공개 메소드들

메소드 설명
DelayShutdown ( dynamic data ) : void
ExecutePendingShutdown ( ) : void
HelpShutdown ( dynamic data ) : void

Called when a shutdown is requested via the Bus

ParseBus ( dynamic data ) : void
Power ( ) : System
ShouldAbort ( ) : bool
TimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

메소드 상세

AbortShutdown() 공개 정적인 메소드

Abort a shutdown if it is not to late
public static AbortShutdown ( ) : void
리턴 void

CreateTask() 공개 정적인 메소드

Create a shutdown command
public static CreateTask ( string parameters ) : void
parameters string The parameters to use
리턴 void

Hibernate() 공개 정적인 메소드

Hibernate the computer
public static Hibernate ( ) : void
리턴 void

IsActionPending() 공개 정적인 메소드

public static IsActionPending ( ) : bool
리턴 bool

LockWorkStation() 공개 정적인 메소드

Lock the workstation
public static LockWorkStation ( ) : void
리턴 void

LogOffUser() 공개 정적인 메소드

Entry off the current user
public static LogOffUser ( ) : void
리턴 void

QueueShutdown() 공개 정적인 메소드

public static QueueShutdown ( string parameters, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int gracePeriod = -1 ) : void
parameters string
options ShutdownOptions
message string
gracePeriod int
리턴 void

Restart() 공개 정적인 메소드

public static Restart ( string comment, Func abortCheckFunc, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
comment string
abortCheckFunc Func
options ShutdownOptions
message string
seconds int
리턴 void

Restart() 공개 정적인 메소드

public static Restart ( string comment, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
comment string
options ShutdownOptions
message string
seconds int
리턴 void

Shutdown() 공개 정적인 메소드

public static Shutdown ( string comment, Func abortCheckFunc, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
comment string
abortCheckFunc Func
options ShutdownOptions
message string
seconds int
리턴 void

Shutdown() 공개 정적인 메소드

public static Shutdown ( string comment, ShutdownOptions options = ShutdownOptions.Abort, string message = null, int seconds ) : void
comment string
options ShutdownOptions
message string
seconds int
리턴 void