Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added Windsor as IoC

  • Loading branch information...
commit 1daed75e3cf77f66094101052aedd399c2ac7aeb 1 parent 14221d8
@akurdyukov authored
View
8 NancyKayakDemo/LocalBootstrapper.cs
@@ -0,0 +1,8 @@
+using Nancy.Bootstrappers.Windsor;
+
+namespace NancyKayakDemo
+{
+ public class LocalBootstrapper : WindsorNancyBootstrapper
+ {
+ }
+}
View
15 NancyKayakDemo/NancyKayakDemo.csproj
@@ -11,7 +11,8 @@
<RootNamespace>NancyKayakDemo</RootNamespace>
<AssemblyName>NancyKayakDemo</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <TargetFrameworkProfile>
+ </TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
@@ -36,25 +37,37 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="Castle.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <HintPath>..\packages\Castle.Core.3.0.0.4001\lib\net40-client\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Windsor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <HintPath>..\packages\Castle.Windsor.3.0.0.4001\lib\net40\Castle.Windsor.dll</HintPath>
+ </Reference>
<Reference Include="Kayak">
<HintPath>..\packages\Kayak.0.7.2\lib\Kayak.dll</HintPath>
</Reference>
<Reference Include="Nancy">
<HintPath>..\packages\Nancy.0.11.0\lib\net40\Nancy.dll</HintPath>
</Reference>
+ <Reference Include="Nancy.Bootstrappers.Windsor, Version=0.11.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\Nancy.Bootstrappers.Windsor.0.11.0\lib\net40\Nancy.Bootstrappers.Windsor.dll</HintPath>
+ </Reference>
<Reference Include="Nancy.Hosting.Owin">
<HintPath>..\packages\Nancy.Hosting.Owin.0.11.0\lib\net40\Nancy.Hosting.Owin.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
+ <Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="LocalBootstrapper.cs" />
<Compile Include="OwinHttpRequestDelegate.cs" />
<Compile Include="OwinServer.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
+ <None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
View
3  NancyKayakDemo/app.config
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<configuration>
+<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
View
3  NancyKayakDemo/packages.config
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
+ <package id="Castle.Core" version="3.0.0.4001" targetFramework="net40" />
+ <package id="Castle.Windsor" version="3.0.0.4001" targetFramework="net40" />
<package id="Kayak" version="0.7.2" targetFramework="net40-Client" />
<package id="Nancy" version="0.11.0" targetFramework="net40-Client" />
+ <package id="Nancy.Bootstrappers.Windsor" version="0.11.0" targetFramework="net40" />
<package id="Nancy.Hosting.Owin" version="0.11.0" targetFramework="net40-Client" />
</packages>
Please sign in to comment.
Something went wrong with that request. Please try again.