Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

WebWatcher behavior #151

@aeb-dev

Description

@aeb-dev

I'm not sure how this should behave but when I use WebWatcherConfiguration with WithTimeout, the watcher result is valid only on first iteration. However, if I use WithHttpServiceProvider it is okay.

WebWatcherConfiguration configuration = WebWatcherConfiguration
                .Create("http://localhost:5000")
                //.WithHttpServiceProvider(() => new HttpService(new HttpClient() { Timeout = TimeSpan.FromSeconds(1) }))
                .WithRequest(HttpRequest.Get("v1/health-check"))
                // .WithTimeout(TimeSpan.FromSeconds(1))
                .EnsureThat(response => response.Data == "OK")
                .Build();

Is it normal behavior or am I doing something wrong?
The warden is initialized and started at startup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions