We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 282c5c1 commit 1928acbCopy full SHA for 1928acb
2 files changed
src/InEngine.Core/IO/Http.cs
@@ -2,9 +2,9 @@
2
3
namespace InEngine.Core.IO
4
{
5
- public class Http
+ public static class Http
6
7
- public string Get(string url)
+ public static string Get(string url)
8
9
return new RestClient(url).Execute(new RestRequest(string.Empty, Method.GET)).Content;
10
}
src/InEngine.Core/LifeCycle/CommandLifeCycle.cs
@@ -44,7 +44,7 @@ public void FirePreActions(AbstractCommand command)
44
try
45
46
if (ShouldPingBefore)
47
- new IO.Http().Get(PingBeforeUrl);
+ IO.Http.Get(PingBeforeUrl);
48
49
catch (Exception exception)
50
@@ -75,7 +75,7 @@ public void FirePostActions(AbstractCommand command)
75
76
77
if (ShouldPingAfter)
78
- new IO.Http().Get(PingAfterUrl);
+ IO.Http.Get(PingAfterUrl);
79
80
81
0 commit comments