summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.Framework
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-10-31 21:18:29 +0000
committersr55 <[email protected]>2010-10-31 21:18:29 +0000
commit02ea0afbb24650fbf41f8e382fcd396ba2a84c45 (patch)
tree21a9c235e0aac7b8b1f30d4b31ec3d590f59d964 /win/C#/HandBrake.Framework
parent57c8671f6c5e4cb263abbc4977959f19c92a02e8 (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.Framework')
-rw-r--r--win/C#/HandBrake.Framework/HandBrake.Framework.csproj4
-rw-r--r--win/C#/HandBrake.Framework/WindsorInstaller.cs33
2 files changed, 37 insertions, 0 deletions
diff --git a/win/C#/HandBrake.Framework/HandBrake.Framework.csproj b/win/C#/HandBrake.Framework/HandBrake.Framework.csproj
index ef4246d6a..18f20ab13 100644
--- a/win/C#/HandBrake.Framework/HandBrake.Framework.csproj
+++ b/win/C#/HandBrake.Framework/HandBrake.Framework.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="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
@@ -85,6 +88,7 @@
<Compile Include="Views\UpdateInfo.Designer.cs">
<DependentUpon>UpdateInfo.cs</DependentUpon>
</Compile>
+ <Compile Include="WindsorInstaller.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
diff --git a/win/C#/HandBrake.Framework/WindsorInstaller.cs b/win/C#/HandBrake.Framework/WindsorInstaller.cs
new file mode 100644
index 000000000..0362c7fbb
--- /dev/null
+++ b/win/C#/HandBrake.Framework/WindsorInstaller.cs
@@ -0,0 +1,33 @@
+/* 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.Framework
+{
+ using Castle.MicroKernel;
+ using Castle.Windsor;
+
+ using HandBrake.Framework.Services;
+ using HandBrake.Framework.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<IErrorService, ErrorService>();
+ }
+ }
+}