C# Class VersionOne.ServiceHost.Core.Services.TimePublisherService

A service that raises an event on an interval basis. Although the Timer could cause reentrancy, our timer is protected against that.
Inheritance: IHostedService
Mostrar archivo Open project: versionone/VersionOne.ServiceHost.Core

Public Methods

Method Description
Initialize ( XmlElement config, IEventManager eventManager, IProfile profile ) : void
Start ( ) : void

Private Methods

Method Description
HostStateChanged ( object pubobj ) : void
Timer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Timer event that publishes the configured event.

If the previous event has not returned, we skip the current interval.

Method Details

Initialize() public method

public Initialize ( XmlElement config, IEventManager eventManager, IProfile profile ) : void
config System.Xml.XmlElement
eventManager IEventManager
profile IProfile
return void

Start() public method

public Start ( ) : void
return void