├── .gitignore
├── .nuget
├── NuGet.Config
├── NuGet.targets
└── nuget.exe
├── FileGrammar.shade
├── LICENSE.txt
├── NOTICE.txt
├── OwinHosting.sln
├── OwinHosting.sln.DotSettings
├── README.md
├── Sakefile.shade
├── Settings.StyleCop
├── _line.shade
├── build.cmd
├── build.sh
└── src
├── Common.snk.gpg
├── Common.targets
├── main
├── Owin.AutoStartup
│ ├── AutoStartupInfrastructure.cs
│ ├── Owin.AutoStartup.HttpListener.nuspec
│ ├── Owin.AutoStartup.Sources.nuspec
│ ├── Owin.AutoStartup.SystemWeb.nuspec
│ ├── Owin.AutoStartup.csproj
│ ├── Owin.AutoStartup.nuspec
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Startup.cs.pp
│ ├── packages.config
│ └── web.config.transform
├── Owin.Builder
│ ├── AppBuilder.cs
│ ├── GlobalSuppressions.cs
│ ├── NotFound.cs
│ ├── Owin.Builder.Sources.nuspec
│ ├── Owin.Builder.csproj
│ ├── Owin.Builder.nuspec
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── packages.config
├── Owin.Extensions
│ ├── CustomDictionary.xml
│ ├── Owin.Extensions.Sources.nuspec
│ ├── Owin.Extensions.csproj
│ ├── Owin.Extensions.nuspec
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── StartupExtensions.Func.cs
│ ├── StartupExtensions.Type.cs
│ ├── StartupExtensions.cs
│ └── packages.config
├── Owin.Loader
│ ├── DefaultLoader.cs
│ ├── GlobalSuppressions.cs
│ ├── NullLoader.cs
│ ├── Owin.Loader.Sources.nuspec
│ ├── Owin.Loader.csproj
│ ├── Owin.Loader.nuspec
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── packages.config
├── Owin.Startup
│ ├── GlobalSuppressions.cs
│ ├── IAppBuilder.cs
│ ├── Owin.csproj
│ ├── Owin.nuspec_archived
│ └── Properties
│ │ └── AssemblyInfo.cs
└── Owin.Types
│ ├── Extensions
│ ├── OwinRequestExtensions.Forwarded..cs
│ └── OwinRequestExtensions.MethodOverride.cs
│ ├── Generated.tt
│ ├── Generated.txt
│ ├── GlobalSuppressions.cs
│ ├── Helpers
│ ├── OwinHelpers.Forwarded.cs
│ ├── OwinHelpers.Header.cs
│ ├── OwinHelpers.MethodOverride.cs
│ └── OwinHelpers.Uri.cs
│ ├── Owin.Types.Sources.nuspec
│ ├── Owin.Types.csproj
│ ├── Owin.Types.nuspec
│ ├── OwinConstants.cs
│ ├── OwinOpaque.Generated.cs
│ ├── OwinOpaque.Spec-Opaque.cs
│ ├── OwinOpaqueParameters.Generated.cs
│ ├── OwinOpaqueParameters.cs
│ ├── OwinRequest.Generated.cs
│ ├── OwinRequest.Spec-CommonKeys.cs
│ ├── OwinRequest.Spec-Opaque.cs
│ ├── OwinRequest.Spec-Owin.cs
│ ├── OwinRequest.Spec-WebSocket.cs
│ ├── OwinRequest.cs
│ ├── OwinResponse.Generated.cs
│ ├── OwinResponse.Spec-Owin.cs
│ ├── OwinResponse.Spec-SendFile.cs
│ ├── OwinResponse.cs
│ ├── OwinWebSocket.Generated.cs
│ ├── OwinWebSocket.Spec-WebSocket.cs
│ ├── OwinWebSocket.cs
│ ├── OwinWebSocketParameters.Generated.cs
│ ├── OwinWebSocketParameters.Spec-WebSocket.cs
│ ├── OwinWebSocketParameters.cs
│ ├── OwinWebSocketReceiveMessage.cs
│ └── Properties
│ └── AssemblyInfo.cs
└── test
├── MiddlewareConvention1
├── Alpha.cs
├── App_Packages
│ └── TaskHelpers.Sources.0.2
│ │ ├── TaskHelpers.cs
│ │ └── TaskHelpersExtensions.cs
├── Gamma.cs
├── MiddlewareConvention1.csproj
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── MiddlewareConvention2
├── App_Packages
│ └── TaskHelpers.Sources.0.2
│ │ ├── TaskHelpers.cs
│ │ └── TaskHelpersExtensions.cs
├── Beta.cs
├── Delta.cs
├── MiddlewareConvention2.csproj
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── Owin.Builder.Tests
├── AppBuilderTests.cs
├── App_Packages
│ └── TaskHelpers.Sources.0.2
│ │ ├── TaskHelpers.cs
│ │ └── TaskHelpersExtensions.cs
├── ConventionsTests.cs
├── Owin.Builder.Tests.csproj
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── Owin.Loader.Tests
├── Class1.cs
├── Owin.Loader.Tests.csproj
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── Owin.Types.Tests
├── Owin.Types.Tests.csproj
├── OwinHeadersTests.cs
├── OwinHelpersForwardedTests.cs
├── OwinHelpersMethodOverrideTests.cs
├── OwinRequestTests.cs
├── OwinResponseSendFileTests.cs
├── OwinResponseTests.cs
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── StartupConvention1
├── Properties
│ └── AssemblyInfo.cs
├── Startup.cs
├── StartupConvention1.csproj
├── Web.Debug.config
├── Web.Release.config
├── Web.config
└── packages.config
├── StartupConvention2
├── Properties
│ └── AssemblyInfo.cs
├── Startup.cs
├── StartupConvention2.csproj
├── Web.Debug.config
├── Web.Release.config
└── Web.config
└── Utils
├── OwinHelper.cs
├── Properties
└── AssemblyInfo.cs
└── Utils.csproj
/.gitignore:
--------------------------------------------------------------------------------
1 | bin
2 | obj
3 | *.suo
4 | *.user
5 | _ReSharper.*
6 | *.DS_Store
7 | *.userprefs
8 | *.pidb
9 | TestResult.xml
10 | nugetkey
11 | packages
12 | target
13 | StyleCop.Cache
14 | TestResults/*
15 | *.snk
16 |
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.nuget/nuget.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/owin-contrib/owin-hosting/e592ab4fc96d98adbfd2303793f7f2cc6fdf26a3/.nuget/nuget.exe
--------------------------------------------------------------------------------
/FileGrammar.shade:
--------------------------------------------------------------------------------
1 | use namespace='Spark.Parser'
2 | use assembly='Spark'
3 | functions
4 | @{
5 | public class FileGrammar : Spark.Parser.Code.CodeGrammar
6 | {
7 | public FileGrammar()
8 | {
9 | var ws = Ch((char)' ', (char)'\t', (char)'\r', (char)'\n');
10 |
11 | var usingHunk = Build(
12 | "using",
13 | Ch("using")
14 | .And(Rep1(ws))
15 | .And(Str(Rep1(ChNot(';'))))
16 | .And(Ch(';')),
17 | hit => new Hunk { Namespace = hit.Left.Down });
18 |
19 | var whitespaceHunk = Build("whitespace",
20 | Rep1(ws),
21 | hit => new Hunk());
22 |
23 | var namespaceHunk = Build(
24 | "namespace",
25 | Ch("namespace")
26 | .And(Rep1(ws))
27 | .And(Str(Rep1(ChNot('{'))))
28 | .And(Ch('{'))
29 | .And(Str(LimitedExpression(Ch("}"))))
30 | .And(Ch('}')),
31 | hit => new Hunk { Namespace = hit.Left.Left.Left.Down, Code = hit.Left.Down });
32 |
33 | var hunk = usingHunk.Or(namespaceHunk);
34 |
35 | var garbageHunk = Build(
36 | "garbage",
37 | Rep1(Ch(ch => true).Unless(hunk)),
38 | hit => new Hunk());
39 |
40 | var hunks = Rep(hunk.Or(garbageHunk));
41 | Hunks = hunks;
42 | }
43 |
44 | public ParseAction> Hunks { get; set; }
45 |
46 | public class Hunk
47 | {
48 | public Position Position { get; set; }
49 | public string Type { get; set; }
50 | public string Text { get; set; }
51 | public string Namespace { get; set; }
52 | public string Code { get; set; }
53 | }
54 |
55 | ParseAction Str(ParseAction parser)
56 | {
57 | return pos =>
58 | {
59 | var result = parser(pos);
60 | return result == null ? null : new ParseResult(result.Rest, pos.Peek(result.Rest.Offset - pos.Offset));
61 | };
62 | }
63 | ParseAction Build(string type, ParseAction parser, Func builder)
64 | {
65 | return pos =>
66 | {
67 | var result = parser(pos);
68 | if (result == null) return null;
69 |
70 | var hunk = builder(result.Value);
71 | hunk.Position = pos;
72 | hunk.Type = type;
73 | hunk.Text = pos.Peek(result.Rest.Offset - pos.Offset);
74 | return new ParseResult(result.Rest, hunk);
75 | };
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/NOTICE.txt:
--------------------------------------------------------------------------------
1 | OWIN hosting components
2 | Copyright 2012 Louis DeJardin
3 | Copyright 2012 Chris Ross
4 |
--------------------------------------------------------------------------------
/OwinHosting.sln.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | 0AB5F10C-F0AD-47AD-AF23-AE80CDB7A19C/d:App_Packages
3 | 0AF835A6-8181-46DB-A17E-C765FA07A5A0/d:App_Packages
4 | 7F67B407-628C-403D-9235-EEE6AF64D32A/d:App_Packages
5 | <?xml version="1.0" encoding="utf-16"?><Profile name="Owin-Hosting"><CSUpdateFileHeader>True</CSUpdateFileHeader><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings></Profile>
6 | Licensed to Monkey Square, Inc. under one or more contributor
7 | license agreements. See the NOTICE file distributed with
8 | this work or additional information regarding copyright
9 | ownership. Monkey Square, Inc. licenses this file to you
10 | under the Apache License, Version 2.0 (the "License"); you
11 | may not use this file except in compliance with the License.
12 | You may obtain a copy of the License at
13 |
14 | http://www.apache.org/licenses/LICENSE-2.0
15 |
16 | Unless required by applicable law or agreed to in writing,
17 | software distributed under the License is distributed on an
18 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 | KIND, either express or implied. See the License for the
20 | specific language governing permissions and limitations
21 | under the License.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | owin-hosting
2 | ============
3 |
4 | OWIN hosting components
--------------------------------------------------------------------------------
/Sakefile.shade:
--------------------------------------------------------------------------------
1 |
2 | var PROJECT='OWIN startup components'
3 | var VERSION='0.7'
4 | var FULL_VERSION='${VERSION}-alpha'
5 | var AUTHORS='${PROJECT} contributors'
6 |
7 | var BASE_DIR='${Directory.GetCurrentDirectory()}'
8 | var TARGET_DIR='${Path.Combine(BASE_DIR, "target")}'
9 | var BUILD_DIR='${Path.Combine(TARGET_DIR, "build")}'
10 | var TEST_DIR='${Path.Combine(TARGET_DIR, "test")}'
11 |
12 | var NUGET_DEPLOY='http://www.myget.org/F/owin/'
13 |
14 | var BUILD_PROJECTS='${Files.Include("src/main/**/*.csproj")}'
15 |
16 | -// include range of standard general targets. run "sake targets" to display
17 | use-standard-lifecycle
18 |
19 | -// include sets of standard work targets. features include 'nuget,xunit,nunit'
20 | use-standard-goals features='nuget,xunit'
21 |
22 | -// additional work targets are defined below
23 |
24 | #release
25 | @{
26 | // To publish, call `build release deploy`
27 | NUGET_DEPLOY = '';
28 | FULL_VERSION = VERSION;
29 | }
30 |
31 | -// override nuget-package to pin OWIN to 1.0
32 | #nuget-package target='package' description='Create NuGet packages'
33 | for each='var file in Files.Include("target/build/**/*.nuspec")'
34 | var baseName='${Path.GetFileNameWithoutExtension(file)}'
35 | var packageVersion='${FULL_VERSION}'
36 | set packageVersion='1.0' if='file.EndsWith("Owin.nuspec")'
37 |
38 | nuget-pack nuspecFile='${file}' outputDir='${TARGET_DIR}' extra='-NoPackageAnalysis -Properties "id=${baseName};authors=${AUTHORS}"'
39 |
40 | #nuget-deploy target='deploy' description='Upload NuGet packages to gallery'
41 | var extra=''
42 | set extra='${extra} -Source ${NUGET_DEPLOY}' if='!string.IsNullOrEmpty(NUGET_DEPLOY)'
43 | nuget-push each='var nupkgFile in Files.Include("target/*.nupkg").Exclude("target/Owin.1.0.nupkg")'
44 |
45 | #sources-package-prepare target='package-prepare'
46 | for each='var file in Files.Include("src/**/*.Sources.nuspec")'
47 | var projectDir='${Path.GetDirectoryName(file)}'
48 | var projectName='${Path.GetFileName(projectDir)}'
49 |
50 | copy sourceDir='${projectDir}' include='**/*.cs' exclude='**/App_Packages/**/*' outputDir='${BUILD_DIR}\${projectName}' overwrite='${true}'
51 | copy sourceDir='.' include='LICENSE.txt' outputDir='${BUILD_DIR}\${projectName}' overwrite='${true}'
52 | copy sourceDir='.' include='NOTICE.txt' outputDir='${BUILD_DIR}\${projectName}' overwrite='${true}'
53 |
54 | for each='var deleteFile in Files.Include(BUILD_DIR + "/" + projectName + "/**/AssemblyInfo.cs")' -File.Delete(deleteFile);
55 |
56 | var files='${new Dictionary>()}'
57 |
58 | use import='FileGrammar'
59 | update-file each='var updateFile in Files.Include(BUILD_DIR + "/" + projectName + "/**/*.cs")'
60 | @{
61 | updateText = updateText
62 | .Replace("public static partial class", "internal static partial class")
63 | .Replace("public static class", "internal static class")
64 | .Replace("public class", "internal class")
65 | .Replace("public struct", "internal struct")
66 | .Replace("public partial struct", "internal partial struct")
67 | .Replace("public enum", "internal enum")
68 | .Replace("public delegate", "internal delegate")
69 | .Replace("public interface", "internal interface")
70 | .Replace(" /// ", " // ");
71 |
72 | var hunks = new FileGrammar().Hunks(new Position(new SourceContext(updateText, 0, updateFile)));
73 | files.Add(updateFile, hunks.Value);
74 | }
75 |
76 | var groups="${files.GroupBy(kv => Path.GetDirectoryName(kv.Key) + '\\' + Path.GetFileName(kv.Key).Split((char)'.').First())}"
77 | for each="var group in groups"
78 | test if='group.Count() == 1'
79 | log info='Skipping single file group ${group.Key}'
80 | else
81 | log info='Output group ${group.Key} has ${group.Count()} parts'
82 | var allHunks='${group.SelectMany(kv=>kv.Value)}'
83 | var allNamespaces='${allHunks.Where(x=>x.Type=="using").Select(x=>x.Namespace).Distinct().OrderBy(x=>(x.Contains("=")?"1":"0")+ x)}'
84 | var allCode='${allHunks.Where(x=>x.Type=="namespace")}'
85 | content var='newCode'
86 | for each='var ns in allNamespaces' line|using !{ns};
87 | line|
88 | line|namespace !{allCode.First().Namespace.Trim()}
89 | line|{
90 | for each='var code in allCode'
91 | line|#region !{Path.GetFileNameWithoutExtension(code.Position.SourceContext.FileName)}
92 | |!{code.Code}
93 | line|#endregion
94 | line|
95 | line|}
96 | for each='var kv in group' -File.Delete(kv.Key);
97 | -File.WriteAllText(group.Key + ".cs", newCode);
98 |
99 |
--------------------------------------------------------------------------------
/_line.shade:
--------------------------------------------------------------------------------
1 | render
2 | |!{"\r\n"}
3 |
--------------------------------------------------------------------------------
/build.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | cd %~dp0
3 |
4 | set EnableNuGetPackageRestore=true
5 | ".nuget\NuGet.exe" install Sake -version 0.2 -o packages
6 | for /f "tokens=*" %%G in ('dir /AD /ON /B "packages\Sake.*"') do set __sake__=%%G
7 | "packages\%__sake__%\tools\Sake.exe" -I src/build -f Sakefile.shade %*
8 | set __sake__=
9 |
--------------------------------------------------------------------------------
/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | export EnableNuGetPackageRestore=true
4 | mono --runtime=v4.0 ".nuget/NuGet.exe" install Sake -pre -o packages
5 | mono $(find packages/Sake.*/tools/Sake.exe|sort -r|head -n1) -f Sakefile.shade -I src/build "$@"
6 |
7 |
--------------------------------------------------------------------------------
/src/Common.snk.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/owin-contrib/owin-hosting/e592ab4fc96d98adbfd2303793f7f2cc6fdf26a3/src/Common.snk.gpg
--------------------------------------------------------------------------------
/src/Common.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ..\..\Common.snk
5 | true
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Owin.AutoStartup.HttpListener.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $id$
5 | $version$
6 | $authors$
7 | $authors$
8 | https://github.com/owin-contrib/owin-hosting/blob/master/LICENSE.txt
9 | https://github.com/owin-contrib/owin-hosting/
10 | false
11 | OWIN common builder sources
12 | OWIN
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Owin.AutoStartup.Sources.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $id$
5 | $version$
6 | $authors$
7 | $authors$
8 | https://github.com/owin-contrib/owin-hosting/blob/master/LICENSE.txt
9 | https://github.com/owin-contrib/owin-hosting/
10 | false
11 | OWIN auto startup
12 | OWIN
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Owin.AutoStartup.SystemWeb.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $id$
5 | $version$
6 | $authors$
7 | $authors$
8 | https://github.com/owin-contrib/owin-hosting/blob/master/LICENSE.txt
9 | https://github.com/owin-contrib/owin-hosting/
10 | false
11 | OWIN common builder sources
12 | OWIN
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Owin.AutoStartup.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {5F97C4CD-31D3-4AC7-A5AB-E0E4D0B79849}
8 | Library
9 | Properties
10 | Owin.AutoStartup
11 | Owin.AutoStartup
12 | v4.0
13 | 512
14 | ..\..\..\
15 | true
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 | ..\..\..\packages\Owin.1.0\lib\net40\Owin.dll
37 |
38 |
39 |
40 |
41 |
42 |
43 | PreserveNewest
44 |
45 |
46 | PreserveNewest
47 |
48 |
49 |
50 |
51 |
52 | PreserveNewest
53 |
54 |
55 | PreserveNewest
56 |
57 |
58 |
59 |
60 | PreserveNewest
61 |
62 |
63 |
64 |
65 |
72 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Owin.AutoStartup.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $id$
5 | $version$
6 | $authors$
7 | $authors$
8 | https://github.com/owin-contrib/owin-hosting/blob/master/LICENSE.txt
9 | https://github.com/owin-contrib/owin-hosting/
10 | false
11 | OWIN auto startup
12 | OWIN
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Owin.AutoStartup")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCulture("")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("84a6388d-059a-454c-b2c8-4a06bff00d23")]
20 |
21 | [assembly: AssemblyVersion("0.7")]
22 | [assembly: AssemblyFileVersion("0.7")]
23 | [assembly: AssemblyInformationalVersion("0.7-alpha")]
24 | [assembly: CLSCompliant(true)]
25 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/Startup.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 | using Owin;
3 | using Owin.AutoStartup;
4 |
5 | namespace $rootnamespace$
6 | {
7 | public partial class Startup
8 | {
9 | public IServiceProvider ServiceProvider { get; set; }
10 |
11 | public Startup()
12 | {
13 | }
14 |
15 | public Startup(IServiceProvider serviceProvider)
16 | {
17 | ServiceProvider = serviceProvider;
18 | }
19 |
20 | public void AutoConfiguration(IAppBuilder app)
21 | {
22 | AutoStartupInfrastructure.ExecuteConfigurationMethods(this, app);
23 | }
24 |
25 | public void Post050_ExecuteOwinAutoStartups(IAppBuilder app)
26 | {
27 | AutoStartupInfrastructure.ExecuteOwinAutoStartups(ServiceProvider, app);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/main/Owin.AutoStartup/web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/Owin.Builder/GlobalSuppressions.cs:
--------------------------------------------------------------------------------
1 | // Licensed to Monkey Square, Inc. under one or more contributor
2 | // license agreements. See the NOTICE file distributed with
3 | // this work or additional information regarding copyright
4 | // ownership. Monkey Square, Inc. licenses this file to you
5 | // under the Apache License, Version 2.0 (the "License"); you
6 | // may not use this file except in compliance with the License.
7 | // You may obtain a copy of the License at
8 | //
9 | // http://www.apache.org/licenses/LICENSE-2.0
10 | //
11 | // Unless required by applicable law or agreed to in writing,
12 | // software distributed under the License is distributed on an
13 | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | // KIND, either express or implied. See the License for the
15 | // specific language governing permissions and limitations
16 | // under the License.
17 | [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Owin", Justification = "Project name")]
18 | [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Owin", Scope = "namespace", Target = "Owin.Builder", Justification = "Project name")]
19 |
--------------------------------------------------------------------------------
/src/main/Owin.Builder/NotFound.cs:
--------------------------------------------------------------------------------
1 | // Licensed to Monkey Square, Inc. under one or more contributor
2 | // license agreements. See the NOTICE file distributed with
3 | // this work or additional information regarding copyright
4 | // ownership. Monkey Square, Inc. licenses this file to you
5 | // under the Apache License, Version 2.0 (the "License"); you
6 | // may not use this file except in compliance with the License.
7 | // You may obtain a copy of the License at
8 | //
9 | // http://www.apache.org/licenses/LICENSE-2.0
10 | //
11 | // Unless required by applicable law or agreed to in writing,
12 | // software distributed under the License is distributed on an
13 | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | // KIND, either express or implied. See the License for the
15 | // specific language governing permissions and limitations
16 | // under the License.
17 |
18 | using System.Collections.Generic;
19 | using System.Threading.Tasks;
20 |
21 | namespace Owin.Builder
22 | {
23 | ///
24 | /// Simple object used by AppBuilder as seed OWIN callable if the
25 | /// builder.Properties["builder.DefaultApp"] is not set
26 | ///
27 | internal class NotFound
28 | {
29 | private static readonly Task Completed = CreateCompletedTask();
30 |
31 | private static Task CreateCompletedTask()
32 | {
33 | var tcs = new TaskCompletionSource