public Heartbeat(HeartbeatSettings settings)
            {
                this.uri                = settings.Uri;
                this.interval           = settings.Interval;
                this.timeout            = settings.Timeout;
                this.isHeartbeatEnabled = settings.IsEnabled;
                this.abortAction        = settings.AbortAction;
                this.credentials        = settings.Credentials;

                if (isHeartbeatEnabled)
                {
                    this.timer = new Timer(this.Worker, null, interval, Timeout.Infinite);
                }
            }
            public Heartbeat(HeartbeatSettings settings)
            {
                this.uri = settings.Uri;
                this.interval = settings.Interval;
                this.timeout = settings.Timeout;
                this.isHeartbeatEnabled = settings.IsEnabled;
                this.abortAction = settings.AbortAction;
                this.credentials = settings.Credentials;

                if (isHeartbeatEnabled)
                {
                    this.timer = new Timer(this.Worker, null, interval, Timeout.Infinite);
                }
            }