|
1 | | -// Smdn.Net.MuninNode.Hosting.dll (Smdn.Net.MuninNode.Hosting-3.0.0) |
| 1 | +// Smdn.Net.MuninNode.Hosting.dll (Smdn.Net.MuninNode.Hosting-3.1.0) |
2 | 2 | // Name: Smdn.Net.MuninNode.Hosting |
3 | | -// AssemblyVersion: 3.0.0.0 |
4 | | -// InformationalVersion: 3.0.0+0830d2fdea4a5b05d99958b5116ff7b474590f2f |
| 3 | +// AssemblyVersion: 3.1.0.0 |
| 4 | +// InformationalVersion: 3.1.0+d9b937573b3b1dd41eaf878498bcf5d285c10471 |
5 | 5 | // TargetFramework: .NETCoreApp,Version=v8.0 |
6 | 6 | // Configuration: Release |
7 | 7 | // Referenced assemblies: |
8 | 8 | // Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 |
9 | 9 | // Microsoft.Extensions.Hosting.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 |
10 | 10 | // Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 |
11 | | -// Smdn.Net.MuninNode, Version=2.2.0.0, Culture=neutral |
| 11 | +// Smdn.Net.MuninNode, Version=2.5.0.0, Culture=neutral |
12 | 12 | // System.Net.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
13 | 13 | // System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
14 | 14 | #nullable enable annotations |
15 | 15 |
|
16 | 16 | using System; |
| 17 | +using System.Diagnostics.CodeAnalysis; |
17 | 18 | using System.Net; |
18 | 19 | using System.Threading; |
19 | 20 | using System.Threading.Tasks; |
|
27 | 28 | namespace Smdn.Net.MuninNode.Hosting { |
28 | 29 | public static class IServiceCollectionExtensions { |
29 | 30 | public static IServiceCollection AddHostedMuninNodeService(this IServiceCollection services, Action<MuninNodeOptions> configureNode, Action<IMuninNodeBuilder> buildNode) {} |
| 31 | + public static IServiceCollection AddHostedMuninNodeService<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TMuninNodeBackgroundService, TMuninNode, TMuninNodeOptions, TMuninNodeBuilder>(this IServiceCollection services, Action<TMuninNodeOptions> configureNode, Func<IMuninServiceBuilder, string, TMuninNodeBuilder> createNodeBuilder, Action<TMuninNodeBuilder> buildNode) where TMuninNodeBackgroundService : MuninNodeBackgroundService where TMuninNode : class, IMuninNode where TMuninNodeOptions : MuninNodeOptions, new() where TMuninNodeBuilder : MuninNodeBuilder {} |
| 32 | + public static IServiceCollection AddHostedMuninNodeService<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TMuninNodeBackgroundService, TMuninNodeBuilder>(this IServiceCollection services, Func<IMuninServiceBuilder, TMuninNodeBuilder> buildMunin) where TMuninNodeBackgroundService : MuninNodeBackgroundService where TMuninNodeBuilder : MuninNodeBuilder {} |
| 33 | + public static IServiceCollection AddHostedMuninNodeService<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TMuninNodeBackgroundService, TMuninNodeService, TMuninNodeImplementation, TMuninNodeOptions, TMuninNodeBuilder>(this IServiceCollection services, Action<TMuninNodeOptions> configureNode, Func<IMuninServiceBuilder, string, TMuninNodeBuilder> createNodeBuilder, Action<TMuninNodeBuilder> buildNode) where TMuninNodeBackgroundService : MuninNodeBackgroundService where TMuninNodeService : class, IMuninNode where TMuninNodeImplementation : class, TMuninNodeService where TMuninNodeOptions : MuninNodeOptions, new() where TMuninNodeBuilder : MuninNodeBuilder {} |
30 | 34 | } |
31 | 35 |
|
32 | 36 | public class MuninNodeBackgroundService : BackgroundService { |
33 | 37 | public MuninNodeBackgroundService(IMuninNode node) {} |
34 | 38 | public MuninNodeBackgroundService(IMuninNode node, ILogger<MuninNodeBackgroundService>? logger) {} |
35 | 39 |
|
36 | 40 | public EndPoint EndPoint { get; } |
| 41 | + protected ILogger? Logger { get; } |
37 | 42 |
|
38 | 43 | public override void Dispose() {} |
39 | 44 | protected override async Task ExecuteAsync(CancellationToken stoppingToken) {} |
| 45 | + public override async Task StartAsync(CancellationToken cancellationToken) {} |
| 46 | + public override async Task StopAsync(CancellationToken cancellationToken) {} |
40 | 47 | } |
41 | 48 | } |
42 | 49 | // API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.5.0.0. |
|
0 commit comments