コード例 #1
0
    public Task Handle(HeartbeatRestored message, IMessageHandlerContext context)
    {
        telemetryClient.TrackEvent("Heartbeat Restored", new Dictionary <string, string>
        {
            { "EndpointName", message.EndpointName },
        });

        log.Info($"Heartbeats from {message.EndpointName} have been restored.");
        return(Task.CompletedTask);
    }
コード例 #2
0
 public Task Handle(HeartbeatRestored message, IMessageHandlerContext context)
 {
     log.Info($"Heartbeat from {message.EndpointName} restored.");
     return(Task.FromResult(0));
 }
コード例 #3
0
 public Task Handle(HeartbeatRestored message, IMessageHandlerContext context)
 {
     log.Info($"Heartbeats from {message.EndpointName} have been restored.");
     return(Task.CompletedTask);
 }