TIA.Core.HostService
1.0.3
dotnet add package TIA.Core.HostService --version 1.0.3
NuGet\Install-Package TIA.Core.HostService -Version 1.0.3
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="TIA.Core.HostService" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TIA.Core.HostService" Version="1.0.3" />
<PackageReference Include="TIA.Core.HostService" />
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 TIA.Core.HostService --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TIA.Core.HostService, 1.0.3"
#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.
#:package TIA.Core.HostService@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TIA.Core.HostService&version=1.0.3
#tool nuget:?package=TIA.Core.HostService&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TIA.Core.WebApi后台主机服务实现类
1、IHostServiceable自动注入
IHostServiceable在TIA.Core.WebApiBase包HostServiceMiddleware中实现依赖注入,IHostServiceable的所有实现类的程序集文件,只要复制到当前项目文件夹内即可,不需要其他额外设置。
2、手动加载HostServiceable各项服务的配置:
编写继承TIA.Core.IHostService.IHostServiceable的实现类,并在TIA.Core.WebApi.HostService.BusinessService中加入服务队列即可。
3、自动加载HostServiceable各项服务的配置
各个IHostServiceable的实现类通过配置文件config\hostserviceconfig.json加载各个主机服务的配置 hostserviceconfig配置中,Name对应IHostServiceable实现类的类名称。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Data.SqlClient (>= 6.1.4)
- Microsoft.Extensions.Http (>= 10.0.3)
- StackExchange.Redis (>= 2.11.8)
- TIA.Cache.Redis (>= 3.0.5)
- TIA.Core.IHostService (>= 1.0.2)
- TIA.Core.Util (>= 3.0.9)
- TIA.MemoryCache (>= 3.0.4)
- TIA.Mqtt (>= 3.0.3)
- TIA.Opcua (>= 3.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.