|
| 1 | +// Smdn.Net.MuninNode.Hosting.dll (Smdn.Net.MuninNode.Hosting-3.2.0) |
| 2 | +// Name: Smdn.Net.MuninNode.Hosting |
| 3 | +// AssemblyVersion: 3.2.0.0 |
| 4 | +// InformationalVersion: 3.2.0+e0dd656596dd5517e6360ee27212b5a87aa0228c |
| 5 | +// TargetFramework: .NETCoreApp,Version=v10.0 |
| 6 | +// Configuration: Release |
| 7 | +// Metadata: IsTrimmable=True |
| 8 | +// Metadata: RepositoryUrl=https://github.com/smdn/Smdn.Net.MuninNode |
| 9 | +// Metadata: RepositoryBranch=main |
| 10 | +// Metadata: RepositoryCommit=e0dd656596dd5517e6360ee27212b5a87aa0228c |
| 11 | +// Referenced assemblies: |
| 12 | +// Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 |
| 13 | +// Microsoft.Extensions.Hosting.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 |
| 14 | +// Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 |
| 15 | +// Smdn.Net.MuninNode, Version=2.5.0.0, Culture=neutral |
| 16 | +// System.Net.Primitives, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 17 | +// System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 18 | +#nullable enable annotations |
| 19 | + |
| 20 | +using System; |
| 21 | +using System.Diagnostics.CodeAnalysis; |
| 22 | +using System.Net; |
| 23 | +using System.Threading; |
| 24 | +using System.Threading.Tasks; |
| 25 | +using Microsoft.Extensions.DependencyInjection; |
| 26 | +using Microsoft.Extensions.Hosting; |
| 27 | +using Microsoft.Extensions.Logging; |
| 28 | +using Smdn.Net.MuninNode; |
| 29 | +using Smdn.Net.MuninNode.DependencyInjection; |
| 30 | +using Smdn.Net.MuninNode.Hosting; |
| 31 | + |
| 32 | +namespace Smdn.Net.MuninNode.Hosting { |
| 33 | + public static class IServiceCollectionExtensions { |
| 34 | + public static IServiceCollection AddHostedMuninNodeService(this IServiceCollection services, Action<MuninNodeOptions> configureNode, Action<IMuninNodeBuilder> buildNode) {} |
| 35 | + 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 {} |
| 36 | + public static IServiceCollection AddHostedMuninNodeService<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TMuninNodeBackgroundService, TMuninNodeBuilder>(this IServiceCollection services, Func<IMuninServiceBuilder, TMuninNodeBuilder> buildMunin) where TMuninNodeBackgroundService : MuninNodeBackgroundService where TMuninNodeBuilder : MuninNodeBuilder {} |
| 37 | + 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 {} |
| 38 | + } |
| 39 | + |
| 40 | + public class MuninNodeBackgroundService : BackgroundService { |
| 41 | + public MuninNodeBackgroundService(IMuninNode node) {} |
| 42 | + public MuninNodeBackgroundService(IMuninNode node, ILogger<MuninNodeBackgroundService>? logger) {} |
| 43 | + |
| 44 | + public EndPoint EndPoint { get; } |
| 45 | + protected ILogger? Logger { get; } |
| 46 | + |
| 47 | + public override void Dispose() {} |
| 48 | + protected override async Task ExecuteAsync(CancellationToken stoppingToken) {} |
| 49 | + public override async Task StartAsync(CancellationToken cancellationToken) {} |
| 50 | + public override async Task StopAsync(CancellationToken cancellationToken) {} |
| 51 | + } |
| 52 | +} |
| 53 | +// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.7.1.0. |
| 54 | +// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.5.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating) |
0 commit comments