Esempio n. 1
0
        private HeartbeatSchedule CreateHeartbeatSchedule()
        {
            var heartbeatSchedule = new HeartbeatSchedule();

            ConfigureHeartbeat(heartbeatSchedule, ApplicationConfiguration);
            return(heartbeatSchedule);
        }
Esempio n. 2
0
 /// <summary>
 /// Configures the service to publish heartbeat messages.
 /// </summary>
 /// <param name="heartbeatSchedule">
 /// An object that defines how the service publishes heartbeat messages.
 /// </param>
 /// <param name="applicationConfiguration">
 /// Configuration information for the service application.
 /// </param>
 protected virtual void ConfigureHeartbeat(HeartbeatSchedule heartbeatSchedule, IConfiguration applicationConfiguration)
 {
     return;
 }