C# Class Clock.AlarmService

Handles all active alarms
Show file Open project: Silveryard/SmartHome

Public Methods

Method Description
RegisterClient ( ServerInstance instance, string function ) : void

Registers a client

Start ( ) : void

Starts the service

Stop ( ) : void

Stops the service

UnregisterClient ( ServerInstance instance ) : void

Unregisters a client

Private Methods

Method Description
AlarmDbConnector_AlarmAdded ( Alarm alarm ) : void
AlarmDbConnector_AlarmDeleted ( Alarm alarm ) : void
AlarmDbConnector_AlarmModified ( Alarm alarm ) : void
CallAlarm ( Alarm alarm ) : void
ServerInstance_InstanceClosed ( ServerInstance obj ) : void
Work ( ) : void

Method Details

RegisterClient() public static method

Registers a client
public static RegisterClient ( ServerInstance instance, string function ) : void
instance Networking.ServerInstance The client
function string The clients function to call
return void

Start() public static method

Starts the service
public static Start ( ) : void
return void

Stop() public static method

Stops the service
public static Stop ( ) : void
return void

UnregisterClient() public static method

Unregisters a client
public static UnregisterClient ( ServerInstance instance ) : void
instance Networking.ServerInstance The client
return void