Skip to content

Commit

Permalink
#371 Adding Web projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstone committed Sep 14, 2020
1 parent c8c2c45 commit f71e229
Show file tree
Hide file tree
Showing 71 changed files with 2,699 additions and 212 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The **Solid Instruments** constituent libraries expose a wide variety of powerfu
[![Service](doc/images/Label.Service.300w.png)](src/RapidField.SolidInstruments.Service/README.md)
[![Signal Processing](doc/images/Label.SignalProcessing.300w.png)](src/RapidField.SolidInstruments.SignalProcessing/README.md)
[![Text Encoding](doc/images/Label.TextEncoding.300w.png)](src/RapidField.SolidInstruments.TextEncoding/README.md)
[![Web](doc/images/Label.Web.300w.png)](src/RapidField.SolidInstruments.Web/README.md)

## License

Expand Down
32 changes: 30 additions & 2 deletions RapidField.SolidInstruments.sln
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "images", "images", "{3A9700
doc\images\Icon.Service.128w.png = doc\images\Icon.Service.128w.png
doc\images\Icon.SignalProcessing.128w.png = doc\images\Icon.SignalProcessing.128w.png
doc\images\Icon.TextEncoding.128w.png = doc\images\Icon.TextEncoding.128w.png
doc\images\Icon.Web.128w.png = doc\images\Icon.Web.128w.png
doc\images\Label.Collections.300w.png = doc\images\Label.Collections.300w.png
doc\images\Label.Command.300w.png = doc\images\Label.Command.300w.png
doc\images\Label.Core.300w.png = doc\images\Label.Core.300w.png
Expand All @@ -179,6 +180,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "images", "images", "{3A9700
doc\images\Label.Service.300w.png = doc\images\Label.Service.300w.png
doc\images\Label.SignalProcessing.300w.png = doc\images\Label.SignalProcessing.300w.png
doc\images\Label.TextEncoding.300w.png = doc\images\Label.TextEncoding.300w.png
doc\images\Label.Web.300w.png = doc\images\Label.Web.300w.png
doc\images\RapidField.Logo.Color.White.Transparent.227w.png = doc\images\RapidField.Logo.Color.White.Transparent.227w.png
doc\images\SolidInstruments.Logo.Color.Black.Transparent.500w.png = doc\images\SolidInstruments.Logo.Color.Black.Transparent.500w.png
EndProjectSection
Expand Down Expand Up @@ -260,6 +262,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "namespaces", "namespaces",
doc\namespaces\RapidField.SolidInstruments.SignalProcessing.md = doc\namespaces\RapidField.SolidInstruments.SignalProcessing.md
doc\namespaces\RapidField.SolidInstruments.TextEncoding.Extensions.md = doc\namespaces\RapidField.SolidInstruments.TextEncoding.Extensions.md
doc\namespaces\RapidField.SolidInstruments.TextEncoding.md = doc\namespaces\RapidField.SolidInstruments.TextEncoding.md
doc\namespaces\RapidField.SolidInstruments.Web.Autofac.Extensions.md = doc\namespaces\RapidField.SolidInstruments.Web.Autofac.Extensions.md
doc\namespaces\RapidField.SolidInstruments.Web.Autofac.md = doc\namespaces\RapidField.SolidInstruments.Web.Autofac.md
doc\namespaces\RapidField.SolidInstruments.Web.DotNetNative.Extensions.md = doc\namespaces\RapidField.SolidInstruments.Web.DotNetNative.Extensions.md
doc\namespaces\RapidField.SolidInstruments.Web.DotNetNative.md = doc\namespaces\RapidField.SolidInstruments.Web.DotNetNative.md
doc\namespaces\RapidField.SolidInstruments.Web.md = doc\namespaces\RapidField.SolidInstruments.Web.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{5D1D074E-456F-4CA1-A4C5-45074EDCFDA8}"
Expand Down Expand Up @@ -407,9 +414,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments.Example.Domain.AccessControl.HttpApi", "example\RapidField.SolidInstruments.Example.Domain.AccessControl.HttpApi\RapidField.SolidInstruments.Example.Domain.AccessControl.HttpApi.csproj", "{AC2D0816-3ABF-4458-80DB-E4BADDD9A2E0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RapidField.SolidInstruments.Example.Domain.Identity", "example\RapidField.SolidInstruments.Example.Domain.Identity\RapidField.SolidInstruments.Example.Domain.Identity.csproj", "{630F6AC9-3A4C-4B8A-B55D-D44A7BFBB025}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments.Example.Domain.Identity", "example\RapidField.SolidInstruments.Example.Domain.Identity\RapidField.SolidInstruments.Example.Domain.Identity.csproj", "{630F6AC9-3A4C-4B8A-B55D-D44A7BFBB025}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RapidField.SolidInstruments.Example.Domain.Identity.Service", "example\RapidField.SolidInstruments.Example.Domain.Identity.Service\RapidField.SolidInstruments.Example.Domain.Identity.Service.csproj", "{352E9021-1010-4A5D-8435-F8331DA63F95}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RapidField.SolidInstruments.Example.Domain.Identity.Service", "example\RapidField.SolidInstruments.Example.Domain.Identity.Service\RapidField.SolidInstruments.Example.Domain.Identity.Service.csproj", "{352E9021-1010-4A5D-8435-F8331DA63F95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RapidField.SolidInstruments.Web", "src\RapidField.SolidInstruments.Web\RapidField.SolidInstruments.Web.csproj", "{3F1A6F2B-B84F-44C5-9E7D-5763C82CA926}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RapidField.SolidInstruments.Web.Autofac", "src\RapidField.SolidInstruments.Web.Autofac\RapidField.SolidInstruments.Web.Autofac.csproj", "{20452BD4-3C2F-44EC-8DEB-14FD9FE8AA84}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RapidField.SolidInstruments.Web.DotNetNative", "src\RapidField.SolidInstruments.Web.DotNetNative\RapidField.SolidInstruments.Web.DotNetNative.csproj", "{6A53C072-71C8-42F1-90D9-9AE64F2848B2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -649,6 +662,18 @@ Global
{352E9021-1010-4A5D-8435-F8331DA63F95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{352E9021-1010-4A5D-8435-F8331DA63F95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{352E9021-1010-4A5D-8435-F8331DA63F95}.Release|Any CPU.Build.0 = Release|Any CPU
{3F1A6F2B-B84F-44C5-9E7D-5763C82CA926}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F1A6F2B-B84F-44C5-9E7D-5763C82CA926}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F1A6F2B-B84F-44C5-9E7D-5763C82CA926}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3F1A6F2B-B84F-44C5-9E7D-5763C82CA926}.Release|Any CPU.Build.0 = Release|Any CPU
{20452BD4-3C2F-44EC-8DEB-14FD9FE8AA84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{20452BD4-3C2F-44EC-8DEB-14FD9FE8AA84}.Debug|Any CPU.Build.0 = Debug|Any CPU
{20452BD4-3C2F-44EC-8DEB-14FD9FE8AA84}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20452BD4-3C2F-44EC-8DEB-14FD9FE8AA84}.Release|Any CPU.Build.0 = Release|Any CPU
{6A53C072-71C8-42F1-90D9-9AE64F2848B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{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
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -728,6 +753,9 @@ Global
{AC2D0816-3ABF-4458-80DB-E4BADDD9A2E0} = {BEB60D41-11BB-4C6E-8F5D-1E7990A27C34}
{630F6AC9-3A4C-4B8A-B55D-D44A7BFBB025} = {BEB60D41-11BB-4C6E-8F5D-1E7990A27C34}
{352E9021-1010-4A5D-8435-F8331DA63F95} = {BEB60D41-11BB-4C6E-8F5D-1E7990A27C34}
{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}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {834FCFB0-DA00-4ABD-9424-6FE1398A9F6E}
Expand Down
Binary file added doc/images/Icon.Web.128w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/Label.Web.300w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
uid: RapidField.SolidInstruments.Web.Autofac.Extensions
summary: *content
---

<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->

Exposes extensions that support the [**Autofac**](https://autofac.org/) integration for the **Solid Instruments** web application abstractions.

<br />

![Web label](../images/Label.Web.300w.png)
- - -

### Installation

This library is available via [**NuGet**](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio). Use one of the commands below to download and install the library and all of its dependencies.

###### .NET CLI

```shell
dotnet add package RapidField.SolidInstruments.Web.Autofac
```

###### NuGet Package Manager

```shell
Install-Package RapidField.SolidInstruments.Web.Autofac
```
39 changes: 39 additions & 0 deletions doc/namespaces/RapidField.SolidInstruments.Web.Autofac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
uid: RapidField.SolidInstruments.Web.Autofac
summary: *content
---

<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->

Exposes the [**Autofac**](https://autofac.org/) integration for the **Solid Instruments** web application abstractions.

<br />

![Web label](../images/Label.Web.300w.png)
- - -

### Installation

This library is available via [**NuGet**](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio). Use one of the commands below to download and install the library and all of its dependencies.

###### .NET CLI

```shell
dotnet add package RapidField.SolidInstruments.Web.Autofac
```

###### NuGet Package Manager

```shell
Install-Package RapidField.SolidInstruments.Web.Autofac
```

### Namespaces

#### [RapidField.SolidInstruments.Web.Autofac.Extensions](https://www.solidinstruments.com/api/RapidField.SolidInstruments.Web.Autofac.Extensions.html)

<section>
Exposes extensions that support the Autofac integration for the Solid Instruments web application abstractions.
</section>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
uid: RapidField.SolidInstruments.Web.DotNetNative.Extensions
summary: *content
---

<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->

Exposes extensions that support the native .NET IoC integration for the **Solid Instruments** web application abstractions.

<br />

![Web label](../images/Label.Web.300w.png)
- - -

### Installation

This library is available via [**NuGet**](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio). Use one of the commands below to download and install the library and all of its dependencies.

###### .NET CLI

```shell
dotnet add package RapidField.SolidInstruments.Web.DotNetNative
```

###### NuGet Package Manager

```shell
Install-Package RapidField.SolidInstruments.Web.DotNetNative
```
39 changes: 39 additions & 0 deletions doc/namespaces/RapidField.SolidInstruments.Web.DotNetNative.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
uid: RapidField.SolidInstruments.Web.DotNetNative
summary: *content
---

<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->

Exposes the native .NET IoC integration for the **Solid Instruments** web application abstractions.

<br />

![Web label](../images/Label.Web.300w.png)
- - -

### Installation

This library is available via [**NuGet**](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio). Use one of the commands below to download and install the library and all of its dependencies.

###### .NET CLI

```shell
dotnet add package RapidField.SolidInstruments.Web.DotNetNative
```

###### NuGet Package Manager

```shell
Install-Package RapidField.SolidInstruments.Web.DotNetNative
```

### Namespaces

#### [RapidField.SolidInstruments.Web.DotNetNative.Extensions](https://www.solidinstruments.com/api/RapidField.SolidInstruments.Web.DotNetNative.Extensions.html)

<section>
Exposes extensions that support the native .NET IoC integration for the Solid Instruments web application abstractions.
</section>
31 changes: 31 additions & 0 deletions doc/namespaces/RapidField.SolidInstruments.Web.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
uid: RapidField.SolidInstruments.Web
summary: *content
---

<!--
Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
-->

Exposes types that simplify web application design.

<br />

![Web label](../images/Label.Web.300w.png)
- - -

### Installation

This library is available via [**NuGet**](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio). Use one of the commands below to download and install the library and all of its dependencies.

###### .NET CLI

```shell
dotnet add package RapidField.SolidInstruments.Web
```

###### NuGet Package Manager

```shell
Install-Package RapidField.SolidInstruments.Web
```
1 change: 1 addition & 0 deletions en-US_User.dic
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ foundational
getters
Gitter
Glyphicons
guid
Halflings
hh
hotfix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================

using Microsoft.Extensions.Configuration;
using RapidField.SolidInstruments.Messaging.DotNetNative.Service;
using System;
using System.IO;

namespace RapidField.SolidInstruments.Example.BeaconService
{
Expand All @@ -23,24 +21,6 @@ public ApplicationServiceExecutor()
return;
}

/// <summary>
/// Builds the application configuration for the service.
/// </summary>
/// <param name="configurationBuilder">
/// An object that is used to build the configuration.
/// </param>
protected override void BuildConfiguration(IConfigurationBuilder configurationBuilder)
{
try
{
configurationBuilder.SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json");
}
finally
{
base.BuildConfiguration(configurationBuilder);
}
}

/// <summary>
/// Releases all resources consumed by the current <see cref="ApplicationServiceExecutor" />.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using RapidField.SolidInstruments.InversionOfControl.DotNetNative;
using System;

namespace RapidField.SolidInstruments.Example.Domain.AccessControl.HttpApi
{
/// <summary>
/// Encapsulates container configuration for application dependencies.
/// </summary>
public sealed class ApplicationDependencyModule : DotNetNativeDependencyModule
{
/// <summary>
/// Initializes a new instance of the <see cref="ApplicationDependencyModule" /> class.
/// </summary>
/// <param name="applicationConfiguration">
/// Configuration information for the application.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="applicationConfiguration" /> is <see langword="null" />.
/// </exception>
public ApplicationDependencyModule(IConfiguration applicationConfiguration)
: base(applicationConfiguration)
{
return;
}

/// <summary>
/// Configures the module.
/// </summary>
/// <param name="configurator">
/// An object that configures containers.
/// </param>
/// <param name="applicationConfiguration">
/// Configuration information for the application.
/// </param>
protected override void Configure(ServiceCollection configurator, IConfiguration applicationConfiguration) => _ = configurator.AddControllers();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public ApplicationDependencyPackage()
/// </returns>
protected override IEnumerable<IDependencyModule<ServiceCollection>> CreateModules(IConfiguration applicationConfiguration) => new IDependencyModule<ServiceCollection>[]
{
new ApplicationDependencyModule(applicationConfiguration),
new DatabaseContextDependencyModule(applicationConfiguration),
new ServiceBusDependencyModule(applicationConfiguration),
new MessageHandlerModule(applicationConfiguration)
Expand Down
Loading

0 comments on commit f71e229

Please sign in to comment.