diff options
author | sr55 <[email protected]> | 2012-09-01 21:55:29 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-09-01 21:55:29 +0000 |
commit | ccd60c79e7bbe7e961885c8d7eb24a6536aeb670 (patch) | |
tree | 71d09543361e930ee1106498544e2248df4b28c6 /win/CS/HandBrake.ApplicationServices/Services/ServerService.cs | |
parent | c387255346f64661db1119b644c88311db67ba57 (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/ServerService.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/ServerService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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
|