Skip to content

Commit

Permalink
Merge branch 'master' into renovate/fluentvalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll authored Jul 2, 2022
2 parents cc9faef + f67c23d commit b264b1e
Show file tree
Hide file tree
Showing 256 changed files with 1,507 additions and 1,769 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"commands": ["reportgenerator"]
},
"nuke.globaltool": {
"version": "6.1.1",
"version": "6.1.2",
"commands": ["nuke"]
},
"codecov.tool": {
Expand Down
16 changes: 9 additions & 7 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<ItemGroup>
<PackageVersion Include="GitVersion.Tool" Version="5.10.3" />
<PackageVersion Include="JetBrains.ReSharper.GlobalTools" Version="2022.1.2" />
<PackageVersion Include="Nuke.Common" Version="6.1.1" />
<PackageVersion Include="Nuke.Common" Version="6.1.2" />
<PackageVersion Include="ReportGenerator" Version="5.1.9" />
<PackageVersion Include="Rocket.Surgery.Nuke" Version="0.17.16" />
</ItemGroup>
Expand Down Expand Up @@ -66,6 +66,8 @@
<PackageVersion Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="6.0.6" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="6.0.6" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
Expand All @@ -89,11 +91,11 @@
<PackageVersion Include="Rocket.Surgery.Conventions.CommandLine" Version="12.2.3" />
<PackageVersion Include="Rocket.Surgery.Conventions.DependencyModel" Version="12.2.3" />
<PackageVersion Include="Rocket.Surgery.Conventions.DryIoc" Version="12.2.3" />
<PackageVersion Include="Rocket.Surgery.Extensions.Configuration" Version="11.4.1" />
<PackageVersion Include="Rocket.Surgery.Extensions.Configuration.Json" Version="11.4.1" />
<PackageVersion Include="Rocket.Surgery.Extensions.Configuration.Yaml" Version="11.4.1" />
<PackageVersion Include="Rocket.Surgery.DependencyInjection.Extensions" Version="11.4.1" />
<PackageVersion Include="Rocket.Surgery.Extensions" Version="11.4.1" />
<PackageVersion Include="Rocket.Surgery.Extensions.Configuration" Version="11.4.2" />
<PackageVersion Include="Rocket.Surgery.Extensions.Configuration.Json" Version="11.4.2" />
<PackageVersion Include="Rocket.Surgery.Extensions.Configuration.Yaml" Version="11.4.2" />
<PackageVersion Include="Rocket.Surgery.DependencyInjection.Extensions" Version="11.4.2" />
<PackageVersion Include="Rocket.Surgery.Extensions" Version="11.4.2" />
<PackageVersion Include="Rocket.Surgery.Hosting" Version="12.2.3" />
<PackageVersion Include="Rocket.Surgery.Hosting.Abstractions" Version="12.2.3" />
<PackageVersion Include="Rocket.Surgery.Web.Hosting" Version="12.2.3" />
Expand Down Expand Up @@ -140,7 +142,7 @@
<PackageVersion Include="xunit" Version="2.4.1" />
<PackageVersion Include="xunit.analyzers" Version="0.10.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageVersion Include="Verify.Xunit" Version="17.1.6" />
<PackageVersion Include="Verify.Xunit" Version="17.2.0" />
<PackageVersion Include="Verify.SourceGenerators" Version="1.5.0" />
</ItemGroup>
<Import
Expand Down
6 changes: 4 additions & 2 deletions Directory.Packages.support.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<Project>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'netcoreapp3.1'">
<PackageVersion Update="Microsoft.AspNetCore.Components.Web" Version="3.1.26" />
<PackageVersion Update="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.26" />
<PackageVersion Update="Microsoft.EntityFrameworkCore" Version="3.1.26" />
<PackageVersion Update="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.26" />
<PackageVersion Update="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.26" />
<PackageVersion Update="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.26" />
<PackageVersion Update="Microsoft.EntityFrameworkCore" Version="3.1.26" />
<PackageVersion Update="Microsoft.Extensions.Diagnostics.HealthChecks" Version="3.1.26" />
<PackageVersion Update="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="3.1.26" />
<PackageVersion Update="System.Net.Http.Json" Version="3.2.1" />
<PackageVersion Update="Microsoft.Extensions.Hosting" Version="3.1.26" />
<PackageVersion Include="System.ComponentModel.Annotations" Version="4.7.0" />
Expand Down
45 changes: 15 additions & 30 deletions LaunchPad.sln
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Analyzers.Tests", "test\Ana
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rocket.Surgery.LaunchPad.HotChocolate", "src\HotChocolate\Rocket.Surgery.LaunchPad.HotChocolate.csproj", "{57F109FE-5337-45FA-8A50-F4BD139B0383}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rocket.Surgery.LaunchPad.Graphql", "src\Graphql\Rocket.Surgery.LaunchPad.Graphql.csproj", "{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Graphql", "sample\Sample.Graphql\Sample.Graphql.csproj", "{AEFC06BB-A1A4-498F-B93A-0E76D95F662A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Graphql.Tests", "test\Sample.Graphql.Tests\Sample.Graphql.Tests.csproj", "{D6A3919B-8513-4879-853B-E942FFB1757B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rocket.Surgery.LaunchPad.EntityFramework.HotChocolate", "src\EntityFramework.HotChocolate\Rocket.Surgery.LaunchPad.EntityFramework.HotChocolate.csproj", "{190EE25F-ECD1-4461-A454-F10185E3A7FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rocket.Surgery.LaunchPad.Mapping", "src\Mapping\Rocket.Surgery.LaunchPad.Mapping.csproj", "{C275559A-F759-4FC4-AAAC-11AE60B7BD45}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rocket.Surgery.LaunchPad.Mapping.NewtonsoftJson", "src\Mapping.NewtonsoftJson\Rocket.Surgery.LaunchPad.Mapping.NewtonsoftJson.csproj", "{4AC6F683-FB5C-47E1-A6F6-3E56DCB54600}"
Expand All @@ -127,6 +123,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.BlazorWasm.Tests", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rocket.Surgery.LaunchPad.Web.Hosting", "src\Web.Hosting\Rocket.Surgery.LaunchPad.Web.Hosting.csproj", "{10D4A16B-F9F0-4D88-8705-7AB36E20D8EF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Classic.Restful", "sample\Sample.Classic.Restful\Sample.Classic.Restful.csproj", "{2C09FAF6-434D-442F-94B2-02AB906B477C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -599,18 +597,6 @@ Global
{57F109FE-5337-45FA-8A50-F4BD139B0383}.Release|x64.Build.0 = Release|Any CPU
{57F109FE-5337-45FA-8A50-F4BD139B0383}.Release|x86.ActiveCfg = Release|Any CPU
{57F109FE-5337-45FA-8A50-F4BD139B0383}.Release|x86.Build.0 = Release|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Debug|x64.ActiveCfg = Debug|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Debug|x64.Build.0 = Debug|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Debug|x86.ActiveCfg = Debug|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Debug|x86.Build.0 = Debug|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Release|Any CPU.Build.0 = Release|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Release|x64.ActiveCfg = Release|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Release|x64.Build.0 = Release|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Release|x86.ActiveCfg = Release|Any CPU
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA}.Release|x86.Build.0 = Release|Any CPU
{AEFC06BB-A1A4-498F-B93A-0E76D95F662A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AEFC06BB-A1A4-498F-B93A-0E76D95F662A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEFC06BB-A1A4-498F-B93A-0E76D95F662A}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand All @@ -635,18 +621,6 @@ Global
{D6A3919B-8513-4879-853B-E942FFB1757B}.Release|x64.Build.0 = Release|Any CPU
{D6A3919B-8513-4879-853B-E942FFB1757B}.Release|x86.ActiveCfg = Release|Any CPU
{D6A3919B-8513-4879-853B-E942FFB1757B}.Release|x86.Build.0 = Release|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Debug|x64.ActiveCfg = Debug|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Debug|x64.Build.0 = Debug|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Debug|x86.ActiveCfg = Debug|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Debug|x86.Build.0 = Debug|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Release|Any CPU.Build.0 = Release|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Release|x64.ActiveCfg = Release|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Release|x64.Build.0 = Release|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Release|x86.ActiveCfg = Release|Any CPU
{190EE25F-ECD1-4461-A454-F10185E3A7FD}.Release|x86.Build.0 = Release|Any CPU
{C275559A-F759-4FC4-AAAC-11AE60B7BD45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C275559A-F759-4FC4-AAAC-11AE60B7BD45}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C275559A-F759-4FC4-AAAC-11AE60B7BD45}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -743,6 +717,18 @@ Global
{10D4A16B-F9F0-4D88-8705-7AB36E20D8EF}.Release|x64.Build.0 = Release|Any CPU
{10D4A16B-F9F0-4D88-8705-7AB36E20D8EF}.Release|x86.ActiveCfg = Release|Any CPU
{10D4A16B-F9F0-4D88-8705-7AB36E20D8EF}.Release|x86.Build.0 = Release|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Debug|x64.ActiveCfg = Debug|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Debug|x64.Build.0 = Debug|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Debug|x86.ActiveCfg = Debug|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Debug|x86.Build.0 = Debug|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Release|Any CPU.Build.0 = Release|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Release|x64.ActiveCfg = Release|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Release|x64.Build.0 = Release|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Release|x86.ActiveCfg = Release|Any CPU
{2C09FAF6-434D-442F-94B2-02AB906B477C}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -790,10 +776,8 @@ Global
{CBF9F362-9694-4BB6-930C-1C59B45E189D} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{D040AD5E-620B-4AF1-92B3-FB4409C4ECFD} = {DF33E0FB-9790-4654-B60F-8AB22E0CC3D1}
{57F109FE-5337-45FA-8A50-F4BD139B0383} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{B6B3D5A8-7DC2-4D80-8704-4C30236BD0BA} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{AEFC06BB-A1A4-498F-B93A-0E76D95F662A} = {5D11C19B-E8E4-4CE3-9C8A-1D368578EBCB}
{D6A3919B-8513-4879-853B-E942FFB1757B} = {DF33E0FB-9790-4654-B60F-8AB22E0CC3D1}
{190EE25F-ECD1-4461-A454-F10185E3A7FD} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{C275559A-F759-4FC4-AAAC-11AE60B7BD45} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{4AC6F683-FB5C-47E1-A6F6-3E56DCB54600} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{32465135-7CBB-4109-8D06-3A2B9F36ABF0} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
Expand All @@ -802,5 +786,6 @@ Global
{B786542C-3EE7-4B6C-9C5B-23E5CA4FE07C} = {5D11C19B-E8E4-4CE3-9C8A-1D368578EBCB}
{A2C670CA-EFDD-468E-BEA1-D6D5A97270C4} = {DF33E0FB-9790-4654-B60F-8AB22E0CC3D1}
{10D4A16B-F9F0-4D88-8705-7AB36E20D8EF} = {8FFDF555-DB50-45F9-9A2D-6410F39151C3}
{2C09FAF6-434D-442F-94B2-02AB906B477C} = {5D11C19B-E8E4-4CE3-9C8A-1D368578EBCB}
EndGlobalSection
EndGlobal
8 changes: 0 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ A common set of libraries used to build console and web applications.
| Rocket.Surgery.LaunchPad.AspNetCore.Spatial | [![nuget-version-hf0rber6kqsw-badge]![nuget-downloads-hf0rber6kqsw-badge]][nuget-hf0rber6kqsw] |
| Rocket.Surgery.LaunchPad.AspNetCore.Testing | [![nuget-version-vmr7vthhrumq-badge]![nuget-downloads-vmr7vthhrumq-badge]][nuget-vmr7vthhrumq] |
| Rocket.Surgery.LaunchPad.EntityFramework | [![nuget-version-nutptsm/tbya-badge]![nuget-downloads-nutptsm/tbya-badge]][nuget-nutptsm/tbya] |
| Rocket.Surgery.LaunchPad.EntityFramework.HotChocolate | [![nuget-version-bpcodlgj17qg-badge]![nuget-downloads-bpcodlgj17qg-badge]][nuget-bpcodlgj17qg] |
| Rocket.Surgery.LaunchPad.Foundation | [![nuget-version-kb2xyygxvala-badge]![nuget-downloads-kb2xyygxvala-badge]][nuget-kb2xyygxvala] |
| Rocket.Surgery.LaunchPad.Foundation.NewtonsoftJson | [![nuget-version-m0yumfedtfoa-badge]![nuget-downloads-m0yumfedtfoa-badge]][nuget-m0yumfedtfoa] |
| Rocket.Surgery.LaunchPad.Functions | [![nuget-version-hllqtixjuvag-badge]![nuget-downloads-hllqtixjuvag-badge]][nuget-hllqtixjuvag] |
| Rocket.Surgery.LaunchPad.Graphql | [![nuget-version-zuh73yztcqma-badge]![nuget-downloads-zuh73yztcqma-badge]][nuget-zuh73yztcqma] |
| Rocket.Surgery.LaunchPad.Grpc | [![nuget-version-auwnvpy8f+6g-badge]![nuget-downloads-auwnvpy8f+6g-badge]][nuget-auwnvpy8f+6g] |
| Rocket.Surgery.LaunchPad.Hosting | [![nuget-version-w/tyeoj0dncw-badge]![nuget-downloads-w/tyeoj0dncw-badge]][nuget-w/tyeoj0dncw] |
| Rocket.Surgery.LaunchPad.HotChocolate | [![nuget-version-ozd3tvimwvrq-badge]![nuget-downloads-ozd3tvimwvrq-badge]][nuget-ozd3tvimwvrq] |
Expand Down Expand Up @@ -88,9 +86,6 @@ TBD
[nuget-nutptsm/tbya]: https://www.nuget.org/packages/Rocket.Surgery.LaunchPad.EntityFramework/
[nuget-version-nutptsm/tbya-badge]: https://img.shields.io/nuget/v/Rocket.Surgery.LaunchPad.EntityFramework.svg?color=004880&logo=nuget&style=flat-square "NuGet Version"
[nuget-downloads-nutptsm/tbya-badge]: https://img.shields.io/nuget/dt/Rocket.Surgery.LaunchPad.EntityFramework.svg?color=004880&logo=nuget&style=flat-square "NuGet Downloads"
[nuget-bpcodlgj17qg]: https://www.nuget.org/packages/Rocket.Surgery.LaunchPad.EntityFramework.HotChocolate/
[nuget-version-bpcodlgj17qg-badge]: https://img.shields.io/nuget/v/Rocket.Surgery.LaunchPad.EntityFramework.HotChocolate.svg?color=004880&logo=nuget&style=flat-square "NuGet Version"
[nuget-downloads-bpcodlgj17qg-badge]: https://img.shields.io/nuget/dt/Rocket.Surgery.LaunchPad.EntityFramework.HotChocolate.svg?color=004880&logo=nuget&style=flat-square "NuGet Downloads"
[nuget-kb2xyygxvala]: https://www.nuget.org/packages/Rocket.Surgery.LaunchPad.Foundation/
[nuget-version-kb2xyygxvala-badge]: https://img.shields.io/nuget/v/Rocket.Surgery.LaunchPad.Foundation.svg?color=004880&logo=nuget&style=flat-square "NuGet Version"
[nuget-downloads-kb2xyygxvala-badge]: https://img.shields.io/nuget/dt/Rocket.Surgery.LaunchPad.Foundation.svg?color=004880&logo=nuget&style=flat-square "NuGet Downloads"
Expand All @@ -100,9 +95,6 @@ TBD
[nuget-hllqtixjuvag]: https://www.nuget.org/packages/Rocket.Surgery.LaunchPad.Functions/
[nuget-version-hllqtixjuvag-badge]: https://img.shields.io/nuget/v/Rocket.Surgery.LaunchPad.Functions.svg?color=004880&logo=nuget&style=flat-square "NuGet Version"
[nuget-downloads-hllqtixjuvag-badge]: https://img.shields.io/nuget/dt/Rocket.Surgery.LaunchPad.Functions.svg?color=004880&logo=nuget&style=flat-square "NuGet Downloads"
[nuget-zuh73yztcqma]: https://www.nuget.org/packages/Rocket.Surgery.LaunchPad.Graphql/
[nuget-version-zuh73yztcqma-badge]: https://img.shields.io/nuget/v/Rocket.Surgery.LaunchPad.Graphql.svg?color=004880&logo=nuget&style=flat-square "NuGet Version"
[nuget-downloads-zuh73yztcqma-badge]: https://img.shields.io/nuget/dt/Rocket.Surgery.LaunchPad.Graphql.svg?color=004880&logo=nuget&style=flat-square "NuGet Downloads"
[nuget-auwnvpy8f+6g]: https://www.nuget.org/packages/Rocket.Surgery.LaunchPad.Grpc/
[nuget-version-auwnvpy8f+6g-badge]: https://img.shields.io/nuget/v/Rocket.Surgery.LaunchPad.Grpc.svg?color=004880&logo=nuget&style=flat-square "NuGet Version"
[nuget-downloads-auwnvpy8f+6g-badge]: https://img.shields.io/nuget/dt/Rocket.Surgery.LaunchPad.Grpc.svg?color=004880&logo=nuget&style=flat-square "NuGet Downloads"
Expand Down
10 changes: 1 addition & 9 deletions sample/Sample.BlazorServer/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Rocket.Surgery.LaunchPad.AspNetCore;
using Sample.BlazorServer.Data;
using Serilog;

namespace Sample.BlazorServer;

Expand Down Expand Up @@ -39,14 +38,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseHttpsRedirection();
app.UseStaticFiles();

// Should this move into an extension method?
app.UseSerilogRequestLogging(
x =>
{
x.GetLevel = LaunchPadLogHelpers.DefaultGetLevel;
x.EnrichDiagnosticContext = LaunchPadLogHelpers.DefaultEnrichDiagnosticContext;
}
);
app.UseLaunchPadRequestLogging();
app.UseMetricsAllMiddleware();

app.UseRouting();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Rocket.Surgery.LaunchPad.AspNetCore;
using Sample.Core.Models;
using Sample.Core.Operations.LaunchRecords;

namespace Sample.Classic.Restful.Controllers;

[Route("[controller]")]
public partial class LaunchRecordController : RestfulApiController
{
/// <summary>
/// Search for launch records
/// </summary>
/// <param name="request">The search context</param>
/// <returns></returns>
[HttpGet]
public partial IAsyncEnumerable<LaunchRecordModel> ListLaunchRecords(ListLaunchRecords.Request request);

/// <summary>
/// Load details of a specific launch record
/// </summary>
/// <param name="request">The request context</param>
/// <returns></returns>
[HttpGet("{id:guid}")]
public partial Task<ActionResult<LaunchRecordModel>> GetLaunchRecord(GetLaunchRecord.Request request);

/// <summary>
/// Create a new launch record
/// </summary>
/// <param name="request">The launch record details</param>
/// <returns></returns>
[HttpPost]
[Created(nameof(GetLaunchRecord))]
public partial Task<ActionResult<CreateLaunchRecord.Response>> CreateLaunchRecord(CreateLaunchRecord.Request request);

/// <summary>
/// Update a given launch record
/// </summary>
/// <param name="id">The id of the launch record</param>
/// <param name="model">The request details</param>
/// <returns></returns>
[HttpPut("{id:guid}")]
// ReSharper disable once RouteTemplates.ParameterTypeAndConstraintsMismatch
public partial Task<ActionResult> EditLaunchRecord([BindRequired] [FromRoute] LaunchRecordId id, EditLaunchRecord.Request model);

/// <summary>
/// Update a given launch record
/// </summary>
/// <param name="id">The id of the launch record</param>
/// <param name="model">The request details</param>
/// <returns></returns>
[HttpPatch("{id:guid}")]
// ReSharper disable once RouteTemplates.ParameterTypeAndConstraintsMismatch
public partial Task<ActionResult> PatchLaunchRecord([BindRequired] [FromRoute] LaunchRecordId id, EditLaunchRecord.PatchRequest model);

/// <summary>
/// Remove a launch record
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpDelete("{id:guid}")]
public partial Task<ActionResult> DeleteLaunchRecord(DeleteLaunchRecord.Request request);
}
Loading

0 comments on commit b264b1e

Please sign in to comment.