Permalink
Browse files

removed FubuMVC.AspNet

  • Loading branch information...
1 parent 7a1c1b1 commit 6bc4722bc0a1262c9582dc332bd6e958efdb5379 @jeremydmiller jeremydmiller committed Dec 15, 2016
Showing with 0 additions and 2,144 deletions.
  1. +0 −98 src/FubuMVC.AspNet/AspNetDictionary.cs
  2. +0 −110 src/FubuMVC.AspNet/FubuAspNetHost.cs
  3. +0 −84 src/FubuMVC.AspNet/FubuMVC.AspNet.csproj
  4. +0 −12 src/FubuMVC.AspNet/Loader.cs
  5. +0 −12 src/FubuMVC.AspNet/Properties/AssemblyInfo.cs
  6. +0 −2 src/FubuMVC.AspNet/paket.references
  7. +0 −1,063 src/FubuMVC.AspNetTesting/FubuMVC.AspNetTesting.csproj
  8. +0 −32 src/FubuMVC.AspNetTesting/Http/can_read_response.cs
  9. +0 −36 src/FubuMVC.AspNetTesting/Properties/AssemblyInfo.cs
  10. +0 −252 src/FubuMVC.AspNetTesting/TestApplication.cs
  11. +0 −22 src/FubuMVC.AspNetTesting/binding_against_form_data.cs
  12. +0 −22 src/FubuMVC.AspNetTesting/binding_against_querystring_values.cs
  13. +0 −31 src/FubuMVC.AspNetTesting/binding_against_request_cookies.cs
  14. +0 −24 src/FubuMVC.AspNetTesting/can_get_gzip_compressed_content.cs
  15. +0 −16 src/FubuMVC.AspNetTesting/can_upload_a_file.cs
  16. +0 −22 src/FubuMVC.AspNetTesting/handling_501_responses.cs
  17. +0 −18 src/FubuMVC.AspNetTesting/handling_a_404.cs
  18. +0 −4 src/FubuMVC.AspNetTesting/paket.references
  19. +0 −50 src/FubuMVC.AspNetTesting/reading_and_writing_json_and_xml_thru_conneg.cs
  20. +0 −50 src/FubuMVC.AspNetTesting/reading_cookies.cs
  21. +0 −28 src/FubuMVC.AspNetTesting/reading_request_headers.cs
  22. +0 −20 src/FubuMVC.AspNetTesting/reading_route_data.cs
  23. +0 −24 src/FubuMVC.AspNetTesting/writing_a_file_to_output.cs
  24. +0 −18 src/FubuMVC.AspNetTesting/writing_a_non_default_status_code.cs
  25. +0 −56 src/FubuMVC.AspNetTesting/writing_response_headers.cs
  26. +0 −21 src/FubuMVC.AspNetTesting/writing_string_output.cs
  27. +0 −17 src/FubuMVC.sln
@@ -1,98 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-
-namespace FubuMVC.AspNet
-{
- public class AspNetDictionary : IDictionary<string, object>
- {
- private static Dictionary<string, Func<HttpContext, object>> _sources = new Dictionary<string, Func<HttpContext, object>>();
-
- static AspNetDictionary()
- {
- _sources["owin.RequestHeaders"] = c => c.Request.Headers.AllKeys.ToDictionary(x => x, x => new []{c.Request.Headers[x]});
- _sources["owin.RequestMethod"] = c => c.Request.HttpMethod;
- _sources["owin.RequestPath"] = c => c.Request.Path;
- _sources["owin.RequestPathBase"] = c => c.Request.ApplicationPath;
- _sources["owin.RequestScheme"] = c => c.Request.Url.Scheme;
- _sources["owin.RequestQueryString"] = c => c.Request.Url.Query;
- _sources["owin.ResponseHeaders"] = c => c.Response.Headers.AllKeys.ToDictionary(x => x, x => new []{c.Response.Headers[x]});
- _sources["owin.ResponseStatusCode"] = c => c.Response.StatusCode;
- _sources["owin.ResponseReasonPhrase"] = c => c.Response.StatusDescription;
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetEnumerator();
- }
-
- public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
- {
- yield break;
- }
-
- public void Add(KeyValuePair<string, object> item)
- {
- }
-
- public void Clear()
- {
- }
-
- public bool Contains(KeyValuePair<string, object> item)
- {
- return false;
- }
-
- public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
- {
- }
-
- public bool Remove(KeyValuePair<string, object> item)
- {
- return false;
- }
-
- public int Count { get; private set; }
- public bool IsReadOnly { get; private set; }
-
- public bool ContainsKey(string key)
- {
- return _sources.ContainsKey(key);
- }
-
- public void Add(string key, object value)
- {
- }
-
- public bool Remove(string key)
- {
- return false;
- }
-
- public bool TryGetValue(string key, out object value)
- {
- value = null;
- return false;
- }
-
- public object this[string key]
- {
- get
- {
- Func<HttpContext, object> value;
- if (_sources.TryGetValue(key, out value))
- {
- return value(HttpContext.Current);
- }
- return null;
- }
- set { }
- }
-
- public ICollection<string> Keys { get; private set; }
- public ICollection<object> Values { get; private set; }
- }
-}
@@ -1,110 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using FubuCore;
-using FubuCore.Logging;
-using FubuMVC.Core;
-using FubuMVC.Core.Diagnostics.Instrumentation;
-using FubuMVC.Core.Http;
-using FubuMVC.Core.Http.AspNet;
-
-namespace FubuMVC.AspNet
-{
- public class FubuAspNetHost : IHttpModule
- {
- public static FubuRuntime Runtime;
- private static Action _startRequest = () => { };
- private static Action _endRequest = () => { };
-
- public static void Bootstrap<T>() where T : FubuRegistry, new()
- {
- Bootstrap(new T());
- }
-
- public static void Bootstrap(FubuRegistry registry)
- {
- Runtime = registry.ToRuntime();
-
- var settings = Runtime.Get<DiagnosticsSettings>();
- if (settings.TraceLevel == TraceLevel.None) return;
-
- var executionLogger = Runtime.Get<IExecutionLogger>();
- var logger = Runtime.Get<ILogger>();
-
- _startRequest = () =>
- {
- try
- {
- if (!HttpContext.Current.Items.Contains("owin.Environment"))
- {
- HttpContext.Current.Items.Add("owin.Environment", new Dictionary<string, object>());
- }
-
- var log = new ChainExecutionLog();
- HttpContext.Current.Response.AppendHeader(HttpRequestExtensions.REQUEST_ID, log.Id.ToString());
- HttpContext.Current.Items.Add(AspNetServiceArguments.CHAIN_EXECUTION_LOG, log);
- }
- catch (Exception e)
- {
- try
- {
- logger.Error("Error in request logging", e);
- }
- catch (Exception exception)
- {
- Console.WriteLine(exception);
- Console.WriteLine(e);
- }
- }
- };
-
- _endRequest = () =>
- {
- try
- {
- if (!HttpContext.Current.Items.Contains(AspNetServiceArguments.CHAIN_EXECUTION_LOG)) return;
-
- var log = HttpContext.Current.Items[AspNetServiceArguments.CHAIN_EXECUTION_LOG].As<ChainExecutionLog>();
- log.MarkFinished();
-
- executionLogger.Record(log, new AspNetDictionary());
- }
- catch (Exception e)
- {
-
- try
- {
- logger.Error("Error in request logging", e);
- }
- catch (Exception exception)
- {
- Console.WriteLine(exception);
- Console.WriteLine(e);
- }
- }
- };
- }
-
- public void Init(HttpApplication context)
- {
- context.BeginRequest += ContextOnBeginRequest;
- context.EndRequest += ContextOnEndRequest;
- }
-
- private void ContextOnEndRequest(object sender, EventArgs eventArgs)
- {
- _endRequest();
- }
-
- private void ContextOnBeginRequest(object sender, EventArgs eventArgs)
- {
- _startRequest();
- }
-
-
- public void Dispose()
- {
- if (Runtime != null) Runtime.Dispose();
- }
- }
-}
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{F3711812-E9CD-42EA-B439-3271370E6CDF}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>FubuMVC.AspNet</RootNamespace>
- <AssemblyName>FubuMVC.AspNet</AssemblyName>
- <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <TargetFrameworkProfile />
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</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\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Web" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\CommonAssemblyInfo.cs">
- <Link>CommonAssemblyInfo.cs</Link>
- </Compile>
- <Compile Include="AspNetDictionary.cs" />
- <Compile Include="FubuAspNetHost.cs" />
- <Compile Include="Loader.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\FubuMVC.Core\FubuMVC.Core.csproj">
- <Project>{e18fd922-0e7a-49cd-b89f-473826077b9d}</Project>
- <Name>FubuMVC.Core</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.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>
- -->
- <ItemGroup>
- <Reference Include="FubuCore">
- <HintPath>..\..\packages\FubuCore\lib\FubuCore.dll</HintPath>
- <Private>True</Private>
- <Paket>True</Paket>
- </Reference>
- </ItemGroup>
- <Choose>
- <When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
- <ItemGroup>
- <Reference Include="Microsoft.Web.Infrastructure">
- <HintPath>..\..\packages\Microsoft.Web.Infrastructure\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
- <Private>True</Private>
- <Paket>True</Paket>
- </Reference>
- </ItemGroup>
- </When>
- </Choose>
-</Project>
@@ -1,12 +0,0 @@
-using Microsoft.Web.Infrastructure.DynamicModuleHelper;
-
-namespace FubuMVC.AspNet
-{
- public class Loader
- {
- public static void LoadModule()
- {
- DynamicModuleUtility.RegisterModule(typeof (FubuAspNetHost));
- }
- }
-}
@@ -1,12 +0,0 @@
-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.
-using System.Web;
-using FubuMVC.AspNet;
-
-[assembly: AssemblyTitle("FubuMVC.AspNet")]
-[assembly: PreApplicationStartMethod(typeof(Loader), "LoadModule")]
@@ -1,2 +0,0 @@
-Microsoft.Web.Infrastructure
-FubuCore
Oops, something went wrong.

0 comments on commit 6bc4722

Please sign in to comment.