-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#371 Introduce example Identity domain.
- Loading branch information
1 parent
b0c34d2
commit 03e0df5
Showing
81 changed files
with
2,645 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...eld.SolidInstruments.Example.Domain.AccessControl.HttpApi/ApplicationDependencyPackage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
using RapidField.SolidInstruments.InversionOfControl.DotNetNative; | ||
using System.Collections.Generic; | ||
|
||
namespace RapidField.SolidInstruments.Example.Domain.AccessControl.HttpApi | ||
{ | ||
/// <summary> | ||
/// Encapsulates container configuration for the application. | ||
/// </summary> | ||
public class ApplicationDependencyPackage : DotNetNativeDependencyPackage | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ApplicationDependencyPackage" /> class. | ||
/// </summary> | ||
public ApplicationDependencyPackage() | ||
: base() | ||
{ | ||
return; | ||
} | ||
|
||
/// <summary> | ||
/// Creates a new collection of dependency modules for the package. | ||
/// </summary> | ||
/// <param name="applicationConfiguration"> | ||
/// Configuration information for the application. | ||
/// </param> | ||
/// <returns> | ||
/// The package's dependency modules. | ||
/// </returns> | ||
protected override IEnumerable<IDependencyModule<ServiceCollection>> CreateModules(IConfiguration applicationConfiguration) => new IDependencyModule<ServiceCollection>[] | ||
{ | ||
new DatabaseContextDependencyModule(applicationConfiguration), | ||
new ServiceBusDependencyModule(applicationConfiguration), | ||
new MessageHandlerModule(applicationConfiguration) | ||
}; | ||
} | ||
} |
Oops, something went wrong.