Semantica.Lib.Core.SimpleInjector
8.1.0
dotnet add package Semantica.Lib.Core.SimpleInjector --version 8.1.0
NuGet\Install-Package Semantica.Lib.Core.SimpleInjector -Version 8.1.0
<PackageReference Include="Semantica.Lib.Core.SimpleInjector" Version="8.1.0" />
<PackageVersion Include="Semantica.Lib.Core.SimpleInjector" Version="8.1.0" />
<PackageReference Include="Semantica.Lib.Core.SimpleInjector" />
paket add Semantica.Lib.Core.SimpleInjector --version 8.1.0
#r "nuget: Semantica.Lib.Core.SimpleInjector, 8.1.0"
#:package Semantica.Lib.Core.SimpleInjector@8.1.0
#addin nuget:?package=Semantica.Lib.Core.SimpleInjector&version=8.1.0
#tool nuget:?package=Semantica.Lib.Core.SimpleInjector&version=8.1.0
Semantica.Lib.Core.SimnpleInjector
This package is part of the core packages of Semantica.Lib.
Summary
Provides a small number of helpful extensions/types for programs that use the SimpleInjector DI container.
Dependencies
- Semantica.Lib.Core
- SimpleInjector
Documentation generated from the XMLDoc:
<a name='assembly'></a>
Lib.Core.SimpleInjector
Contents
<a name='T-Semantica-Core-SimpleInjector-ModuleExtensions'></a>
ModuleExtensions type
Namespace
Semantica.Core.SimpleInjector
<a name='M-Semantica-Core-SimpleInjector-ModuleExtensions-RegisterTransientDisposable``2-SimpleInjector-Container,System-String-'></a>
RegisterTransientDisposable``2() method
Summary
Registers TImplementation
as Transient implementation of
TInterface
. Use when the system that will create the instance is always going to be responsible for
disposing it.
Parameters
This method has no parameters.
<a name='T-Semantica-Core-SimpleInjector-ServiceCollectionContainer'></a>
ServiceCollectionContainer type
Namespace
Semantica.Core.SimpleInjector
Summary
Implementation of IServiceCollection, so the modules can be built up using the extensions provided by ServiceCollectionServiceExtensions, but using .Container as the actual implementation.
Remarks
Registrations are done to .Container, so they follow all it's restrictions.
If specific functionality is required, cast the IServiceCollection to
ServiceCollectionContainer to retrieve the actual Container.
<a name='M-Semantica-Core-SimpleInjector-ServiceCollectionContainer-#ctor-SimpleInjector-Container,System-Func{System-IServiceProvider},System-Boolean-'></a>
#ctor(container,serviceProviderLocator,forEnumeration) constructor
Summary
Instantiate when calling the root ModuleBase`1 implementation's Register method.
Parameters
Name | Type | Description |
---|---|---|
container | SimpleInjector.Container | The .Container instance used in the application. |
serviceProviderLocator | System.Func{System.IServiceProvider} | A function that can produce a IServiceCollection to be used with |
ImplementationFactory. | ||
forEnumeration | System.Boolean | When true , all added ServiceDescriptor are stored in a separate collection to provide |
extra IList`1 functionality. |
Remarks
The locator can be omitted (null
), but only if all Factory-registrations don't use the
IServiceProvider argument. Determining this is the responsibility of the implementor.
<a name='M-Semantica-Core-SimpleInjector-ServiceCollectionContainer-Add-Microsoft-Extensions-DependencyInjection-ServiceDescriptor-'></a>
Add() method
Summary
Registrations are done to the .Container, so they follow all it's restrictions.
Parameters
This method has no parameters.
<a name='M-Semantica-Core-SimpleInjector-ServiceCollectionContainer-GetContainer'></a>
GetContainer() method
Summary
Parameters
This method has no parameters.
<a name='M-Semantica-Core-SimpleInjector-ServiceCollectionContainer-ToLifestyle-Microsoft-Extensions-DependencyInjection-ServiceLifetime-'></a>
ToLifestyle() method
Summary
Converts ServiceLifetime to the equivalent Lifestyle.
Parameters
This method has no parameters.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Semantica.Lib.Core (>= 8.1.0)
- SimpleInjector (>= 5.4.0)
-
net7.0
- Semantica.Lib.Core (>= 8.1.0)
- SimpleInjector (>= 5.4.0)
-
net8.0
- Semantica.Lib.Core (>= 8.1.0)
- SimpleInjector (>= 5.4.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Semantica.Lib.Core.SimpleInjector:
Package | Downloads |
---|---|
Semantica.Lib.TestTools.SimpleInjector
Provides two abstract base classes in order make compact unit tests that verify registrations of your DI modules based on Semantica.Lib.Core.DependencyInjection.ModuleBase. Use ContainerModuleTestBase to make unit tests when you use SimpleInjector.Container as your DI container, or ServiceCollectionModuleTestBase to make unit tests when you use System.Extensions.DependencyInjection.IServiceCollection as you DI container. Both implementations leverage SimpleInjector's Container.Verify() method for registration validation. |
|
Semantica.Lib.Storage.EntityFramework.SimpleInjector
Package Description |
|
Semantica.Lib.Package.Core.SimpleInjector
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
8.1.0 | 129 | 5/30/2025 |
8.0.7 | 153 | 9/6/2024 |
8.0.6-beta | 131 | 7/10/2024 |
8.0.5-beta | 125 | 7/4/2024 |
8.0.4-beta | 125 | 7/2/2024 |
8.0.3-beta | 122 | 6/14/2024 |
8.0.2-beta | 127 | 6/4/2024 |
8.0.1-beta | 115 | 6/4/2024 |
8.0.0-beta | 125 | 6/4/2024 |
6.6.1-beta | 147 | 4/5/2024 |
6.6.0-beta | 138 | 3/5/2024 |
6.5.5-alpha2 | 124 | 3/4/2024 |
6.5.5-alpha | 125 | 3/4/2024 |
6.5.4-beta | 120 | 2/29/2024 |
6.5.3-beta | 169 | 10/5/2023 |
6.5.2-beta | 152 | 10/5/2023 |
6.5.1-beta | 159 | 9/29/2023 |
6.5.0-beta | 145 | 9/22/2023 |
6.4.0-beta | 194 | 7/11/2023 |
6.3.0-beta | 181 | 6/15/2023 |
6.2.5-beta | 242 | 3/14/2023 |
6.2.4-beta | 626 | 10/12/2022 |
6.2.3-beta | 301 | 9/1/2022 |
6.2.1-beta | 218 | 8/25/2022 |