C# Class Clock.TimeService

Handles automatic updating of time on clients
Show file Open project: Silveryard/SmartHome

Public Methods

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

Registers a new client

Start ( ) : void

Starts the service

Stop ( ) : void

Stops the service

Unregister ( ServerInstance instance ) : void

Unregisters a client

Private Methods

Method Description
ServerInstance_InstanceClosed ( ServerInstance obj ) : void
Work ( ) : void

Method Details

Register() public static method

Registers a new client
public static Register ( ServerInstance instance, string function ) : void
instance Networking.ServerInstance The client
function string The clients function
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

Unregister() public static method

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