HCI.Core.Helper
1.0.1
See the version list below for details.
dotnet add package HCI.Core.Helper --version 1.0.1
NuGet\Install-Package HCI.Core.Helper -Version 1.0.1
<PackageReference Include="HCI.Core.Helper" Version="1.0.1" />
paket add HCI.Core.Helper --version 1.0.1
#r "nuget: HCI.Core.Helper, 1.0.1"
// Install HCI.Core.Helper as a Cake Addin
#addin nuget:?package=HCI.Core.Helper&version=1.0.1
// Install HCI.Core.Helper as a Cake Tool
#tool nuget:?package=HCI.Core.Helper&version=1.0.1
HCI.Core.Helper
Features
HCI.Core.Helper is a NuGet library that you can automatically register all services by following the name pattern by assembly.
The following platforms are supported:
- .NET Core
Getting started
The easiest way to get started is by installing the available NuGet packages and if you're not a NuGet fan then follow these steps:
Download the latest runtime library from: https://www.nuget.org/api/v2/package/HCI.Core.Helper. Or install the latest package: PM> Install-Package HCI.Core.Helper
A Quick Example
Services Register
Automatically register all services by following the name pattern by assembly.
- In
Startup.cs
enter the code according to line 4 at the end of theConfigureServices
method; - Use the
ServicesRegister
class to trigger the desired method; - Enter the service container;
- Enter the assembly of a project implementation target of the dependency injection;
- Enter the suffix pattern for the services to be registered;
- Optionally, enter a suffix pattern for the used contract.
Add services as scope
public void ConfigureServices(IServiceCollection services)
{
// TODO code here.
ServicesRegister.AddServicesScope(services, typeof(FooService).Assembly, "Service");
}
Add services as singleton
public void ConfigureServices(IServiceCollection services)
{
// TODO code here.
ServicesRegister.AddServicesSingleton(services, typeof(FooService).Assembly, "Service");
}
Add services as transient
public void AddServicesTransient(IServiceCollection services)
{
// TODO code here.
ServicesRegister.AddServicesScope(services, typeof(FooService).Assembly, "Service");
}
Report Support
To report errors, questions and suggestions go to the link
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- Microsoft.Extensions.DependencyInjection (>= 2.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.