Skip to content

Commit

Permalink
#371 Complete User HTTP API.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstone committed Oct 21, 2020
1 parent a19c50c commit d882859
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 124 deletions.
7 changes: 0 additions & 7 deletions RapidField.SolidInstruments.sln
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments.Web.DotNetNative", "src\RapidField.SolidInstruments.Web.DotNetNative\RapidField.SolidInstruments.Web.DotNetNative.csproj", "{6A53C072-71C8-42F1-90D9-9AE64F2848B2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments.Example.HttpApiClient", "example\RapidField.SolidInstruments.Example.HttpApiClient\RapidField.SolidInstruments.Example.HttpApiClient.csproj", "{46A9050C-F99A-4F93-B98B-B67A53A3FA0A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -676,10 +674,6 @@ Global
{6A53C072-71C8-42F1-90D9-9AE64F2848B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A53C072-71C8-42F1-90D9-9AE64F2848B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A53C072-71C8-42F1-90D9-9AE64F2848B2}.Release|Any CPU.Build.0 = Release|Any CPU
{46A9050C-F99A-4F93-B98B-B67A53A3FA0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{46A9050C-F99A-4F93-B98B-B67A53A3FA0A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{46A9050C-F99A-4F93-B98B-B67A53A3FA0A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{46A9050C-F99A-4F93-B98B-B67A53A3FA0A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -762,7 +756,6 @@ Global
{3F1A6F2B-B84F-44C5-9E7D-5763C82CA926} = {F58E05BE-9DC6-41B4-8324-C006F6CE7CC7}
{20452BD4-3C2F-44EC-8DEB-14FD9FE8AA84} = {F58E05BE-9DC6-41B4-8324-C006F6CE7CC7}
{6A53C072-71C8-42F1-90D9-9AE64F2848B2} = {F58E05BE-9DC6-41B4-8324-C006F6CE7CC7}
{46A9050C-F99A-4F93-B98B-B67A53A3FA0A} = {BEB60D41-11BB-4C6E-8F5D-1E7990A27C34}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {834FCFB0-DA00-4ABD-9424-6FE1398A9F6E}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ public static class Program
/// <summary>
/// Begins execution of the application.
/// </summary>
/// <param name="args">
/// <param name="commandLineArguments">
/// Command line arguments that are provided at runtime.
/// </param>
public static void Main(String[] args)
public static void Main(String[] commandLineArguments)
{
var applicationConfiguration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.AddCommandLine(commandLineArguments)
.Build();
var host = Host.CreateDefaultBuilder(args)
var host = Host.CreateDefaultBuilder(commandLineArguments)
.ConfigureWebHostDefaults(webHost =>
{
webHost.UseConfiguration(applicationConfiguration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public static class Program
/// <summary>
/// Begins execution of the application.
/// </summary>
/// <param name="args">
/// <param name="commandLineArguments">
/// Command line arguments that are provided at runtime.
/// </param>
public static void Main(String[] args)
public static void Main(String[] commandLineArguments)
{
using var serviceExecutor = new ApplicationServiceExecutor(ServiceName);
serviceExecutor.Execute(args);
serviceExecutor.Execute(commandLineArguments);
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public static class Program
/// <summary>
/// Begins execution of the application.
/// </summary>
/// <param name="args">
/// <param name="commandLineArguments">
/// Command line arguments that are provided at runtime.
/// </param>
public static void Main(String[] args)
public static void Main(String[] commandLineArguments)
{
using var serviceExecutor = new ApplicationServiceExecutor(ServiceName);
serviceExecutor.Execute(args);
serviceExecutor.Execute(commandLineArguments);
}

/// <summary>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public sealed class ServiceProvider : IServiceProvider, ISupportRequiredService
/// <exception cref="ArgumentNullException">
/// <paramref name="container" /> is <see langword="null" />.
/// </exception>
[DebuggerHidden]
internal ServiceProvider(IDependencyContainer container)
public ServiceProvider(IDependencyContainer container)
{
Container = container.RejectIf().IsNull(nameof(container)).TargetArgument;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in
<Product>Solid Instruments</Product>
<Description>This library exposes the Autofac IoC integration for the Solid Instruments web application abstractions.</Description>
<Version>$(BuildVersion)</Version>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/rapidfield/solid-instruments</RepositoryUrl>
Expand All @@ -22,12 +22,12 @@ Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in
<PackageTags>solid-instruments;web;web-application;inversion-of-control;ioc;dependency-injection;di;autofac</PackageTags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netstandard2.1\RapidField.SolidInstruments.Web.Autofac.xml</DocumentationFile>
<DocumentationFile>bin\Debug\netcoreapp3.1\RapidField.SolidInstruments.Web.Autofac.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Release\netstandard2.1\RapidField.SolidInstruments.Web.Autofac.xml</DocumentationFile>
<DocumentationFile>bin\Release\netcoreapp3.1\RapidField.SolidInstruments.Web.Autofac.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in
<Product>Solid Instruments</Product>
<Description>This library exposes the native .NET IoC integration for the Solid Instruments web application abstractions.</Description>
<Version>$(BuildVersion)</Version>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/rapidfield/solid-instruments</RepositoryUrl>
Expand All @@ -22,12 +22,12 @@ Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in
<PackageTags>solid-instruments;web;web-application;inversion-of-control;ioc;dependency-injection;di</PackageTags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netstandard2.1\RapidField.SolidInstruments.Web.DotNetNative.xml</DocumentationFile>
<DocumentationFile>bin\Debug\netcoreapp3.1\RapidField.SolidInstruments.Web.DotNetNative.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Release\netstandard2.1\RapidField.SolidInstruments.Web.DotNetNative.xml</DocumentationFile>
<DocumentationFile>bin\Release\netcoreapp3.1\RapidField.SolidInstruments.Web.DotNetNative.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
Expand Down
13 changes: 13 additions & 0 deletions src/RapidField.SolidInstruments.Web/HttpApiController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================

namespace RapidField.SolidInstruments.Web
{
/// <summary>
/// Processes HTTP requests for an API endpoint.
/// </summary>
public abstract class HttpApiController
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in
<Product>Solid Instruments</Product>
<Description>This library exposes types that simplify web application design.</Description>
<Version>$(BuildVersion)</Version>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/rapidfield/solid-instruments</RepositoryUrl>
Expand All @@ -22,12 +22,12 @@ Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in
<PackageTags>solid-instruments;web;web-application</PackageTags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netstandard2.1\RapidField.SolidInstruments.Web.xml</DocumentationFile>
<DocumentationFile>bin\Debug\netcoreapp3.1\RapidField.SolidInstruments.Web.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Release\netstandard2.1\RapidField.SolidInstruments.Web.xml</DocumentationFile>
<DocumentationFile>bin\Release\netcoreapp3.1\RapidField.SolidInstruments.Web.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
Expand Down

0 comments on commit d882859

Please sign in to comment.