diff options
author | sr55 <[email protected]> | 2012-09-30 14:08:03 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-09-30 14:08:03 +0000 |
commit | 6b70a7fb55f7b21e3c153c92c5c9186d3b92e3ab (patch) | |
tree | a2e730948e97f3b27d054c0f7e58172e90538582 /win/CS/HandBrake.ApplicationServices | |
parent | 6206cd1e041df6ccaafae8de70624dd9e4dc8a7d (diff) |
WinGui: Misc Fixes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4997 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/ServerService.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs b/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs index f6b6edf44..d8966c192 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs @@ -20,6 +20,12 @@ namespace HandBrake.ApplicationServices.Services using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Parsing;
using HandBrake.ApplicationServices.Services.Interfaces;
+ using HandBrake.Interop;
+ using HandBrake.Interop.Interfaces;
+
+ using EncodeCompletedEventArgs = HandBrake.ApplicationServices.EventArgs.EncodeCompletedEventArgs;
+ using EncodeProgressEventArgs = HandBrake.ApplicationServices.EventArgs.EncodeProgressEventArgs;
+ using ScanProgressEventArgs = HandBrake.ApplicationServices.EventArgs.ScanProgressEventArgs;
/// <summary>
/// HandBrake WCF Service
@@ -152,6 +158,9 @@ namespace HandBrake.ApplicationServices.Services /// <summary>
/// Start the service
/// </summary>
+ /// <param name="port">
+ /// The port.
+ /// </param>
public void Start(string port)
{
using (host = new ServiceHost(typeof(ServerService), new Uri(string.Format("net.tcp://127.0.0.1:{0}", port))))
@@ -163,8 +172,9 @@ namespace HandBrake.ApplicationServices.Services 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
- encodeService = new Encode(new UserSettingService());
+ IHandBrakeInstance instance = new HandBrakeInstance();
+ scanService = new LibScan(new UserSettingService(), instance); // TODO this needs wired up with castle
+ encodeService = new LibEncode(new UserSettingService(), instance);
shutdownFlag = new ManualResetEvent(false);
shutdownFlag.WaitOne();
|