summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-09-01 21:55:29 +0000
committersr55 <[email protected]>2012-09-01 21:55:29 +0000
commitccd60c79e7bbe7e961885c8d7eb24a6536aeb670 (patch)
tree71d09543361e930ee1106498544e2248df4b28c6 /win/CS/HandBrake.ApplicationServices/Services
parentc387255346f64661db1119b644c88311db67ba57 (diff)
WinGui: Further work in the process isolation service.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4927 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Interfaces/IServerService.cs5
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/ServerService.cs8
2 files changed, 8 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IServerService.cs b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IServerService.cs
index 49eedffa5..60d9d0b57 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IServerService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IServerService.cs
@@ -63,7 +63,10 @@ namespace HandBrake.ApplicationServices.Services.Interfaces
/// <summary>
/// Start the WCF Service
/// </summary>
- void Start();
+ /// <param name="port">
+ /// The port.
+ /// </param>
+ void Start(string port);
/// <summary>
/// Stop the WCF Service
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs b/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs
index 9984ade21..277a7c5b3 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs
@@ -146,15 +146,15 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Start the service
/// </summary>
- public void Start()
+ public void Start(string port)
{
- using (this.host = new ServiceHost(typeof(ServerService), new Uri("net.tcp://localhost:8000")))
+ using (this.host = new ServiceHost(typeof(ServerService), new Uri(string.Format("net.tcp://127.0.0.1:{0}", port))))
{
// Setup a listener
this.host.AddServiceEndpoint(typeof(IServerService), new NetTcpBinding(), "IHbService");
this.host.Open();
- Console.WriteLine("::: HandBrake Server :::");
- Console.WriteLine("Service Started");
+ Console.WriteLine("::: HandBrake Isolation Server:::");
+ Console.WriteLine("Service Started. Waiting for Clients...");
// Setup the services we are going to use.
scanService = new ScanService(new UserSettingService()); // TODO this needs wired up with castle