C# 클래스 PlexServiceWCF.PmsMonitor

Class for monitoring the status of Plex Media Server
파일 보기 프로젝트 열기: cjmurph/PmsService 1 사용 예제들

공개 메소드들

메소드 설명
IsAuxAppRunning ( string name ) : bool
StartAuxApp ( string name ) : void
StopAuxApp ( string name ) : void

보호된 메소드들

메소드 설명
OnPlexStatusChange ( object sender, PlexServiceCommon.StatusChangeEventArgs data ) : void

Method to fire the status change event

OnPlexStop ( object sender, EventArgs data ) : void

Method to stop the monitor

비공개 메소드들

메소드 설명
PmsMonitor ( ) : System
Restart ( int delay ) : void

Restart plex, wait for the specified delay between stop and start

Start ( ) : void

Start monitoring plex

Stop ( ) : void

Stop the monitor and kill the processes

disableFirstRun ( ) : void

This method will set the "FirstRun" registry key to 0 to prevent PMS from spawning the default browser.

endPlex ( ) : void

Kill the plex process

getPlexExecutable ( ) : string

Returns the full path and filename of the plex media server executable

killSupportingProcess ( string name ) : void

Kill all instances of the specified process.

killSupportingProcesses ( ) : void

Kill all processes with the specified names

plex_Exited ( object sender, EventArgs e ) : void

This event fires when the plex process we have a reference to exits

purgeAutoStartRegistryEntry ( ) : void

This method will look for and remove the "run at startup" registry key for plex media server.

startPlex ( ) : void

Start a new/get a handle on existing Plex process

메소드 상세

IsAuxAppRunning() 공개 메소드

public IsAuxAppRunning ( string name ) : bool
name string
리턴 bool

OnPlexStatusChange() 보호된 메소드

Method to fire the status change event
protected OnPlexStatusChange ( object sender, PlexServiceCommon.StatusChangeEventArgs data ) : void
sender object
data PlexServiceCommon.StatusChangeEventArgs
리턴 void

OnPlexStop() 보호된 메소드

Method to stop the monitor
protected OnPlexStop ( object sender, EventArgs data ) : void
sender object
data System.EventArgs
리턴 void

StartAuxApp() 공개 메소드

public StartAuxApp ( string name ) : void
name string
리턴 void

StopAuxApp() 공개 메소드

public StopAuxApp ( string name ) : void
name string
리턴 void