Skip to content

Commit be3c7d4

Browse files
committed
init sample
1 parent c05d859 commit be3c7d4

File tree

5 files changed

+80
-3
lines changed

5 files changed

+80
-3
lines changed

AspNetCore.sln

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.OpenAp
18161816
EndProject
18171817
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.App.SourceGenerators", "src\Framework\AspNetCoreAnalyzers\src\SourceGenerators\Microsoft.AspNetCore.App.SourceGenerators.csproj", "{C3928C15-1836-46DB-A09D-9EFBCCA33E08}"
18181818
EndProject
1819+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalSampleOwin", "src\Http\samples\MinimalSampleOwin\MinimalSampleOwin.csproj", "{95032BC4-8BE5-4703-8075-93CB9DFF93EF}"
1820+
EndProject
18191821
Global
18201822
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18211823
Debug|Any CPU = Debug|Any CPU
@@ -10977,6 +10979,22 @@ Global
1097710979
{C3928C15-1836-46DB-A09D-9EFBCCA33E08}.Release|x64.Build.0 = Release|Any CPU
1097810980
{C3928C15-1836-46DB-A09D-9EFBCCA33E08}.Release|x86.ActiveCfg = Release|Any CPU
1097910981
{C3928C15-1836-46DB-A09D-9EFBCCA33E08}.Release|x86.Build.0 = Release|Any CPU
10982+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
10983+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
10984+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|arm64.ActiveCfg = Debug|Any CPU
10985+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|arm64.Build.0 = Debug|Any CPU
10986+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|x64.ActiveCfg = Debug|Any CPU
10987+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|x64.Build.0 = Debug|Any CPU
10988+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|x86.ActiveCfg = Debug|Any CPU
10989+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Debug|x86.Build.0 = Debug|Any CPU
10990+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
10991+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|Any CPU.Build.0 = Release|Any CPU
10992+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|arm64.ActiveCfg = Release|Any CPU
10993+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|arm64.Build.0 = Release|Any CPU
10994+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|x64.ActiveCfg = Release|Any CPU
10995+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|x64.Build.0 = Release|Any CPU
10996+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|x86.ActiveCfg = Release|Any CPU
10997+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF}.Release|x86.Build.0 = Release|Any CPU
1098010998
EndGlobalSection
1098110999
GlobalSection(SolutionProperties) = preSolution
1098211000
HideSolutionNode = FALSE
@@ -11874,6 +11892,7 @@ Global
1187411892
{B32FF7A7-9CB3-4DCD-AE97-3B2594DB9DAC} = {2299CCD8-8F9C-4F2B-A633-9BF4DA81022B}
1187511893
{B9BBC1A8-7F58-4F43-94C3-5F3CB125CEF7} = {B32FF7A7-9CB3-4DCD-AE97-3B2594DB9DAC}
1187611894
{C3928C15-1836-46DB-A09D-9EFBCCA33E08} = {B5D98AEB-9409-4280-8225-9C1EC6A791B2}
11895+
{95032BC4-8BE5-4703-8075-93CB9DFF93EF} = {EB5E294B-9ED5-43BF-AFA9-1CD2327F3DC1}
1187711896
EndGlobalSection
1187811897
GlobalSection(ExtensibilityGlobals) = postSolution
1187911898
SolutionGuid = {3E8720B3-DBDD-498C-B383-2CC32A054E8F}

src/Http/HttpAbstractions.slnf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@
3838
"src\\Http\\Routing\\perf\\Microbenchmarks\\Microsoft.AspNetCore.Routing.Microbenchmarks.csproj",
3939
"src\\Http\\Routing\\src\\Microsoft.AspNetCore.Routing.csproj",
4040
"src\\Http\\Routing\\test\\FunctionalTests\\Microsoft.AspNetCore.Routing.FunctionalTests.csproj",
41+
"src\\Http\\Routing\\test\\UnitTests\\Microsoft.AspNetCore.Routing.Tests.csproj",
4142
"src\\Http\\Routing\\test\\testassets\\Benchmarks\\Benchmarks.csproj",
4243
"src\\Http\\Routing\\test\\testassets\\RoutingSandbox\\RoutingSandbox.csproj",
4344
"src\\Http\\Routing\\test\\testassets\\RoutingWebSite\\RoutingWebSite.csproj",
44-
"src\\Http\\Routing\\test\\UnitTests\\Microsoft.AspNetCore.Routing.Tests.csproj",
45-
"src\\Http\\samples\\MinimalSample\\MinimalSample.csproj",
46-
"src\\Http\\samples\\SampleApp\\HttpAbstractions.SampleApp.csproj",
4745
"src\\Http\\WebUtilities\\perf\\Microbenchmarks\\Microsoft.AspNetCore.WebUtilities.Microbenchmarks.csproj",
4846
"src\\Http\\WebUtilities\\src\\Microsoft.AspNetCore.WebUtilities.csproj",
4947
"src\\Http\\WebUtilities\\test\\Microsoft.AspNetCore.WebUtilities.Tests.csproj",
48+
"src\\Http\\samples\\MinimalSampleOwin\\MinimalSampleOwin.csproj",
49+
"src\\Http\\samples\\MinimalSample\\MinimalSample.csproj",
50+
"src\\Http\\samples\\SampleApp\\HttpAbstractions.SampleApp.csproj",
5051
"src\\Middleware\\CORS\\src\\Microsoft.AspNetCore.Cors.csproj",
5152
"src\\Middleware\\Diagnostics.Abstractions\\src\\Microsoft.AspNetCore.Diagnostics.Abstractions.csproj",
5253
"src\\Middleware\\Diagnostics\\src\\Microsoft.AspNetCore.Diagnostics.csproj",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<EnableRequestDelegateGenerator>true</EnableRequestDelegateGenerator>
7+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
8+
<IsTrimmable>true</IsTrimmable>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<Reference Include="Microsoft.AspNetCore" />
13+
<Reference Include="Microsoft.AspNetCore.Diagnostics" />
14+
<Reference Include="Microsoft.AspNetCore.Hosting" />
15+
<Reference Include="Microsoft.AspNetCore.Http" />
16+
<Reference Include="Microsoft.AspNetCore.Http.Results" />
17+
<Reference Include="Microsoft.AspNetCore.Owin" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<ProjectReference Include="$(RepoRoot)/src/Http/Http.Extensions/gen/Microsoft.AspNetCore.Http.RequestDelegateGenerator.csproj" OutputItemType="Analyzer" />
22+
</ItemGroup>
23+
24+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System.Reflection;
5+
using Microsoft.AspNetCore;
6+
using Microsoft.AspNetCore.Http.HttpResults;
7+
using Microsoft.AspNetCore.Http.Metadata;
8+
using Microsoft.AspNetCore.Mvc;
9+
using Microsoft.AspNetCore.Owin;
10+
11+
var builder = WebApplication.CreateBuilder(args);
12+
var app = builder.Build();
13+
14+
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
15+
hostBuilder.Build().Run();
16+
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
17+
18+
Func<IDictionary<string, object>, Task> ConfigureOwinPipeline(Func<IDictionary<string, object>, Task> next) => env =>
19+
{
20+
return next(env);
21+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"profiles": {
3+
"MinimalSampleOwin": {
4+
"commandName": "Project",
5+
"launchBrowser": true,
6+
"applicationUrl": "https://localhost:5001;http://localhost:5000",
7+
"environmentVariables": {
8+
"ASPNETCORE_ENVIRONMENT": "Development"
9+
}
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)