mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #127] C# usage example #87
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cuu508 on GitHub (Jul 19, 2017).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/127
I know nothing about C#. Does the above look OK?
@taylus commented on GitHub (Aug 3, 2017):
For pinging a check? Yeah, that's the way to do it.
There's a newer class called HttpClient which you might see around, but it's not a straight replacement and both are still widely used.
http://www.diogonunes.com/blog/webclient-vs-httpclient-vs-httpwebrequest/
https://stackoverflow.com/questions/20530152/need-help-deciding-between-httpclient-and-webclient
Its use would look very similar:
using (var client = new HttpClient()) { await client.GetAsync("ping url"); }@rud commented on GitHub (Sep 11, 2017):
Looks legit, issue seems possible to close now?
@cuu508 commented on GitHub (Sep 11, 2017):
Yeah, I'll add an usage example and close this issue when that's done.