registerUrlAndCert is WIN-only yet
This commit is contained in:
1 parent
37e4108249
commit
e0950d9865
2 files changed
+10
-2
No files matched your search
@@ -140,7 +140,7 @@ namespace ClientServerLib
|
||||
host.Description.Behaviors.Add(smb);*/
|
||||
|
||||
host.Open();
|
||||
}
|
||||
}
|
||||
catch (CommunicationException e)
|
||||
{
|
||||
if (e is AddressAccessDeniedException || e is AddressAlreadyInUseException)
|
||||
@@ -178,6 +178,8 @@ namespace ClientServerLib
|
||||
|
||||
private void registerUrlAndCert(int port)
|
||||
{
|
||||
#if WIN
|
||||
|
||||
ProcessStartInfo info = new ProcessStartInfo();
|
||||
info.FileName = "WebserverInitalConfig.exe";
|
||||
info.Arguments = port.ToString() + " " + encrypted.ToString();
|
||||
@@ -191,6 +193,12 @@ namespace ClientServerLib
|
||||
p.WaitForExit();
|
||||
p.Close();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
//Required?
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DefineConstants>TRACE;DEBUG;WIN;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in new issue
Block a user