ScaleHub.DependecyInjection
0.1.4
dotnet add package ScaleHub.DependecyInjection --version 0.1.4
NuGet\Install-Package ScaleHub.DependecyInjection -Version 0.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ScaleHub.DependecyInjection" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ScaleHub.DependecyInjection" Version="0.1.4" />
<PackageReference Include="ScaleHub.DependecyInjection" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ScaleHub.DependecyInjection --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ScaleHub.DependecyInjection, 0.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ScaleHub.DependecyInjection&version=0.1.4
#tool nuget:?package=ScaleHub.DependecyInjection&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ScaleHub extension for Microsoft.Extensions.DependencyInjection
Usage
To use, with an IServiceCollection
instance:
builder.Services.AddScaleHub(opt =>
{
//Configure here the scalehub.
});
This registers:
- As a singleton for the
IScaleHub
- As a background service for the
ScaleHubBackgroundService
To use at runtime, add a dependency on IScaleHub
:
public class EmployeesController
{
private readonly IScaleHub hub;
public EmployeesController(IScaleHub hub)
{
this.hub = hub;
}
// use the this.hub
}
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 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. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- ScaleHub.Core (>= 0.1.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ScaleHub.DependecyInjection:
Package | Downloads |
---|---|
ScaleHub.SqlServer
ScaleHub.SqlServer SQL Server integration for ScaleHub. |
GitHub repositories
This package is not used by any popular GitHub repositories.