Permalink
Browse files

Adding JustNancy case study

  • Loading branch information...
1 parent 55e1e77 commit c3af4c105a8140d77bfe4fc7a8f40dcb831726f9 @lodejard lodejard committed May 11, 2012
View
6 OwinSandbox.sln
@@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Case04_JustWebApi", "src\Ca
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils", "src\Utils\Utils.csproj", "{A0722902-80C3-4879-9C73-3B158B6B8637}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Case05_JustNancy", "src\Case05_JustNancy\Case05_JustNancy.csproj", "{7FBE2284-5616-457F-AA0F-A5EFD9379994}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -43,6 +45,10 @@ Global
{A0722902-80C3-4879-9C73-3B158B6B8637}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0722902-80C3-4879-9C73-3B158B6B8637}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0722902-80C3-4879-9C73-3B158B6B8637}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7FBE2284-5616-457F-AA0F-A5EFD9379994}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7FBE2284-5616-457F-AA0F-A5EFD9379994}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7FBE2284-5616-457F-AA0F-A5EFD9379994}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7FBE2284-5616-457F-AA0F-A5EFD9379994}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
2 Sakefile.shade
@@ -9,7 +9,7 @@ var FULL_VERSION='${VERSION}-alpha-1'
var AUTHORS='OWIN contributors'
var KATANA_VERSION='0.1.1'
-var CORAL_VERSION='0.0.1'
+var CORAL_VERSION='0.0.2'
var BASE_DIR='${Directory.GetCurrentDirectory()}'
var TARGET_DIR='${Path.Combine(BASE_DIR, "target")}'
View
4 src/Case04_JustWebApi/Properties/AssemblyInfo.cs
@@ -8,10 +8,6 @@
[assembly: AssemblyTitle("Case04_JustWebApi")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MSIT")]
-[assembly: AssemblyProduct("Case04_JustWebApi")]
-[assembly: AssemblyCopyright("Copyright © MSIT 2012")]
-[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
View
101 src/Case05_JustNancy/Case05_JustNancy.csproj
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{7FBE2284-5616-457F-AA0F-A5EFD9379994}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Case05_JustNancy</RootNamespace>
+ <AssemblyName>Case05_JustNancy</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <UseIISExpress>false</UseIISExpress>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Gate.Adapters.Nancy">
+ <HintPath>..\..\packages\Gate.Adapters.Nancy.0.3.6\lib\net40\Gate.Adapters.Nancy.dll</HintPath>
+ </Reference>
+ <Reference Include="Gate.Builder">
+ <HintPath>..\..\packages\Gate.Builder.0.3.6\lib\net40\Gate.Builder.dll</HintPath>
+ </Reference>
+ <Reference Include="Gate.Hosts.AspNet">
+ <HintPath>..\..\packages\Gate.Hosts.AspNet.0.3.4\lib\net40\Gate.Hosts.AspNet.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="Microsoft.Web.Infrastructure">
+ <HintPath>..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
+ </Reference>
+ <Reference Include="Nancy">
+ <HintPath>..\..\packages\Nancy.0.11.0\lib\net40\Nancy.dll</HintPath>
+ </Reference>
+ <Reference Include="Owin">
+ <HintPath>..\..\packages\Owin.0.7\lib\net40\Owin.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Startup.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Utils\Utils.csproj">
+ <Project>{A0722902-80C3-4879-9C73-3B158B6B8637}</Project>
+ <Name>Utils</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>60508</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
31 src/Case05_JustNancy/Properties/AssemblyInfo.cs
@@ -0,0 +1,31 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Case05_JustNancy")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("5d681f9b-12f3-425d-89a3-822595cdf6b0")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("0.1.0")]
+[assembly: AssemblyFileVersion("0.1.0")]
View
25 src/Case05_JustNancy/Startup.cs
@@ -0,0 +1,25 @@
+using Gate.Adapters.Nancy;
+using Nancy;
+using Owin;
+using Utils;
+
+namespace Case05_JustNancy
+{
+ public class Startup
+ {
+ public void Configuration(IAppBuilder builder)
+ {
+ builder
+ .Use<AppTaskDelegate>(Middleware.LogRequests)
+ .RunNancy();
+ }
+ }
+
+ public class HomeModule : NancyModule
+ {
+ public HomeModule()
+ {
+ Get["/"] = _ => "Hello world!";
+ }
+ }
+}
View
9 src/Case05_JustNancy/packages.config
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Gate.Adapters.Nancy" version="0.3.6" />
+ <package id="Gate.Builder" version="0.3.6" />
+ <package id="Gate.Hosts.AspNet" version="0.3.4" />
+ <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" />
+ <package id="Nancy" version="0.11.0" />
+ <package id="Owin" version="0.7" />
+</packages>
View
4 src/Utils/Properties/AssemblyInfo.cs
@@ -8,10 +8,6 @@
[assembly: AssemblyTitle("Utils")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MSIT")]
-[assembly: AssemblyProduct("Utils")]
-[assembly: AssemblyCopyright("Copyright © MSIT 2012")]
-[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible

0 comments on commit c3af4c1

Please sign in to comment.