![]() |
VOOZH | about |
dotnet add package Reo.Core.Hosting --version 10.0.210
NuGet\Install-Package Reo.Core.Hosting -Version 10.0.210
<PackageReference Include="Reo.Core.Hosting" Version="10.0.210" />
<PackageVersion Include="Reo.Core.Hosting" Version="10.0.210" />Directory.Packages.props
<PackageReference Include="Reo.Core.Hosting" />Project file
paket add Reo.Core.Hosting --version 10.0.210
#r "nuget: Reo.Core.Hosting, 10.0.210"
#:package Reo.Core.Hosting@10.0.210
#addin nuget:?package=Reo.Core.Hosting&version=10.0.210Install as a Cake Addin
#tool nuget:?package=Reo.Core.Hosting&version=10.0.210Install as a Cake Tool
Reo.Core.Hosting — это библиотека, предназначенная для упрощения разработки приложений на основе ASP.NET Core. Пакет
предоставляет набор утилит, сервисов и абстракций, которые помогают решать типичные задачи, такие как:
appsettings.json или переменных окружения.myParam → my-param).Microsoft.Extensions.HostingRedLockNetMicrosoft.Extensions.ConfigurationInstall-Package Reo.Core.Hosting
dotnet add package Reo.Core.Hosting
public void ConfigureServices(IServiceCollection services)
{
services.AddHostedService<DistributedPeriodicBackgroundRoutine>();
services.Configure<GisOptions>(Configuration.GetSection("Gis"));
services.AddSingleton<IGisProviderService, GisProviderService>();
}
Пример appsettings.json:
{
"Gis": {
"Code": "GIS-123",
"IdentityServerAddress": "https://identity.example.com",
"ApiGatewayAddress": "https://api.example.com",
"UiAddress": "https://ui.example.com"
}
}
public class MyDistributedTask : DistributedPeriodicBackgroundRoutine
{
protected override string LockName => "my-task-lock";
protected override string TaskDisplayName => "My Distributed Task";
protected override async ValueTask ExecutePeriodicWorkAsync(CancellationToken cancellationToken)
{
// Логика задачи
await Console.Out.WriteLineAsync("Executing distributed task...");
}
}
public class MyService
{
private readonly IGisProviderService _gisProvider;
public MyService(IGisProviderService gisProvider)
{
_gisProvider = gisProvider;
}
public void GetGisInfo()
{
var code = _gisProvider.GetCode();
var identityServerAddress = _gisProvider.GetIdentityServerAddress();
Console.WriteLine($"GIS Code: {code}, Identity Server: {identityServerAddress}");
}
}
var timeProvider = new ReoTimeProvider();
var localizedDate = timeProvider.GetLocalizedNow("Europe/Moscow");
Console.WriteLine($"Current time in Moscow: {localizedDate}");
Данный пакет распространяется под лицензией MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Reo.Core.Hosting:
| Package | Downloads |
|---|---|
|
Reo.Core.NoSql
Package Description |
|
|
Reo.Core.IdentityModel
Package Description |
|
|
Reo.Core.AutoHistory
Package Description |
|
|
Reo.Core.Database
Package Description |
|
|
Reo.Core.DistributedCache
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.210 | 0 | 6/18/2026 |
| 10.0.209 | 72 | 6/17/2026 |
| 10.0.208 | 77 | 6/17/2026 |
| 10.0.207 | 75 | 6/17/2026 |
| 10.0.206 | 79 | 6/17/2026 |
| 10.0.205 | 97 | 6/16/2026 |
| 10.0.204 | 93 | 6/16/2026 |
| 10.0.203 | 90 | 6/16/2026 |
| 10.0.202 | 96 | 6/16/2026 |
| 10.0.201 | 103 | 6/16/2026 |
| 10.0.200 | 102 | 6/16/2026 |
| 10.0.199 | 94 | 6/16/2026 |
| 10.0.198 | 99 | 6/16/2026 |
| 10.0.197 | 134 | 6/16/2026 |
| 10.0.196 | 119 | 6/16/2026 |
| 10.0.195 | 162 | 6/15/2026 |
| 10.0.194 | 166 | 6/15/2026 |
| 10.0.193 | 164 | 6/15/2026 |
| 10.0.192 | 228 | 6/11/2026 |
| 10.0.191 | 229 | 6/11/2026 |