diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/Interfaces/IServerService.cs | 5 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/ServerService.cs | 8 |
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
|