Skip to content

Commit 1928acb

Browse files
committed
Make Http wrapper class static
1 parent 282c5c1 commit 1928acb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/InEngine.Core/IO/Http.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace InEngine.Core.IO
44
{
5-
public class Http
5+
public static class Http
66
{
7-
public string Get(string url)
7+
public static string Get(string url)
88
{
99
return new RestClient(url).Execute(new RestRequest(string.Empty, Method.GET)).Content;
1010
}

src/InEngine.Core/LifeCycle/CommandLifeCycle.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void FirePreActions(AbstractCommand command)
4444
try
4545
{
4646
if (ShouldPingBefore)
47-
new IO.Http().Get(PingBeforeUrl);
47+
IO.Http.Get(PingBeforeUrl);
4848
}
4949
catch (Exception exception)
5050
{
@@ -75,7 +75,7 @@ public void FirePostActions(AbstractCommand command)
7575
try
7676
{
7777
if (ShouldPingAfter)
78-
new IO.Http().Get(PingAfterUrl);
78+
IO.Http.Get(PingAfterUrl);
7979
}
8080
catch (Exception exception)
8181
{

0 commit comments

Comments
 (0)