diff options
author | sr55 <[email protected]> | 2010-10-31 21:18:29 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-10-31 21:18:29 +0000 |
commit | 02ea0afbb24650fbf41f8e382fcd396ba2a84c45 (patch) | |
tree | 21a9c235e0aac7b8b1f30d4b31ec3d590f59d964 /win/C#/HandBrake.ApplicationServices | |
parent | 57c8671f6c5e4cb263abbc4977959f19c92a02e8 (diff) |
WinGui:
- Added an implementation of IWindsorInstaller to the class libraries.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3634 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj | 4 | ||||
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/WindsorInstaller.cs | 35 |
2 files changed, 39 insertions, 0 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj b/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj index ba0e3a64e..31cc44f7a 100644 --- a/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj +++ b/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj @@ -44,6 +44,9 @@ <ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL" />
+ <Reference Include="Castle.MicroKernel, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL" />
+ <Reference Include="Castle.Windsor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL" />
<Reference Include="Growl.Connector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=980c2339411be384, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\libraries\Growl.Connector.dll</HintPath>
@@ -105,6 +108,7 @@ <Compile Include="Services\Interfaces\IScan.cs" />
<Compile Include="Services\Queue.cs" />
<Compile Include="Services\Scan.cs" />
+ <Compile Include="WindsorInstaller.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
diff --git a/win/C#/HandBrake.ApplicationServices/WindsorInstaller.cs b/win/C#/HandBrake.ApplicationServices/WindsorInstaller.cs new file mode 100644 index 000000000..a9bc473a2 --- /dev/null +++ b/win/C#/HandBrake.ApplicationServices/WindsorInstaller.cs @@ -0,0 +1,35 @@ +/* WindsorInstaller.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
+
+namespace HandBrake.ApplicationServices
+{
+ using Castle.MicroKernel;
+ using Castle.Windsor;
+
+ using HandBrake.ApplicationServices.Services;
+ using HandBrake.ApplicationServices.Services.Interfaces;
+
+ /// <summary>
+ /// This is the Windsor Installer class.
+ /// </summary>
+ public class WindsorInstaller : IWindsorInstaller
+ {
+ /// <summary>
+ /// Setup the Services for this Library
+ /// </summary>
+ /// <param name="container">
+ /// The container.
+ /// </param>
+ /// <param name="store">
+ /// The store.
+ /// </param>
+ public void Install(IWindsorContainer container, IConfigurationStore store)
+ {
+ container.AddComponent<IScan, ScanService>();
+ container.AddComponent<IQueue, Queue>();
+ container.AddComponent<IEncode, Encode>();
+ }
+ }
+}
|