コード例 #1
0
        private void EmitHeartbeat(object unusedState)
        {
            EventMetadata metadata = new Tracing.EventMetadata();

            metadata.Add("MinutesUptime", (long)(DateTime.Now - this.startTime).TotalMinutes);
            metadata.Add("MinutesSinceLast", (int)HeartBeatWaitTime.TotalMinutes);
            this.tracer.RelatedEvent(EventLevel.Verbose, "Heartbeat", metadata);
        }