Skip to content

Commit

Permalink
switched to net.tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
KlappPc committed Dec 13, 2016
1 parent 4239b2b commit 6df027b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ASFui/Util.cs
Expand Up @@ -14,7 +14,7 @@ namespace ASFui
{
internal static class Util
{
private static readonly BasicHttpBinding Binding = new BasicHttpBinding {SendTimeout = new TimeSpan(0, 30, 0)};
private static readonly NetTcpBinding Binding = new NetTcpBinding { SendTimeout = new TimeSpan(0, 30, 0)};

public static bool CheckBinary()
{
Expand Down Expand Up @@ -49,10 +49,10 @@ private static string GetEndpointAddress()
var json =
JObject.Parse(
File.ReadAllText(Path.GetDirectoryName(Settings.Default.ASFBinary) + @"/config/ASF.json"));
var hostname = json["WCFHostname"].ToString();
var hostname = json["WCFHost"].ToString();
var port = json["WCFPort"].ToString();

return "http://" + hostname + ":" + port + "/ASF";
return "net.tcp://" + hostname + ":" + port + "/ASF";
}

public static bool CheckIfAsfIsRunning()
Expand Down

0 comments on commit 6df027b

Please sign in to comment.