C# 클래스 OSAE.Service.OSAEService

파일 보기 프로젝트 열기: opensourceautomation/Open-Source-Automation 1 사용 예제들

공개 메소드들

메소드 설명
LoadPlugins ( string serviceName ) : void

UnhandledPluginExceptions ( object sender, UnhandledExceptionEventArgs args ) : void
pluginExist ( string name ) : bool
startPlugin ( string serviceName, OSAE.Service.Plugin plugin ) : void
stopPlugin ( string serviceName, OSAE.Service.Plugin p ) : void

비공개 메소드들

메소드 설명
CheckServiceObject ( ) : string

Check if there is an object for the Service running on this machine in OSA, and create one if not.

DeleteStoreFiles ( ) : void
InitialiseOSAInEventLog ( ) : void

Check if there is a OSA message container in the Event log and create one if not.

MethodMessageReceived ( PacketHeader header, Connection connection, string message ) : void
PluginMessageReceived ( PacketHeader header, Connection connection, string message ) : void
QueryCommandQueue ( ) : void

periodically checks the command queue to see if there is any commands that need to be processed by plugins

ShutDownSystems ( ) : void

Stops all the plugins

StartNetworkListener ( ) : void
StartPlugin ( string serviceName, OSAEMethod method ) : void

Starts a plugin based on a method

StartThreads ( string serviceName ) : void

Starts the various OSA threads that monitors the command Queue, and monitors plugins

StopPlugin ( string serviceName, OSAEMethod method ) : void

Stops a plugin based on a method

checkPlugins_tick ( object source, EventArgs e ) : void
pluginLoaded ( string type ) : bool

메소드 상세

LoadPlugins() 공개 메소드

public LoadPlugins ( string serviceName ) : void
serviceName string
리턴 void

UnhandledPluginExceptions() 공개 메소드

public UnhandledPluginExceptions ( object sender, UnhandledExceptionEventArgs args ) : void
sender object
args System.UnhandledExceptionEventArgs
리턴 void

pluginExist() 공개 메소드

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

startPlugin() 공개 메소드

public startPlugin ( string serviceName, OSAE.Service.Plugin plugin ) : void
serviceName string
plugin OSAE.Service.Plugin
리턴 void

stopPlugin() 공개 메소드

public stopPlugin ( string serviceName, OSAE.Service.Plugin p ) : void
serviceName string
p OSAE.Service.Plugin
리턴 void