C# Класс OSAE.Service.OSAEService

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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