1- // Smdn.Net.SmartMeter.Extensions.Munin.dll (Smdn.Net.SmartMeter.Extensions.Munin-2.0 .0)
1+ // Smdn.Net.SmartMeter.Extensions.Munin.dll (Smdn.Net.SmartMeter.Extensions.Munin-2.1 .0)
22// Name: Smdn.Net.SmartMeter.Extensions.Munin
3- // AssemblyVersion: 2.0 .0.0
4- // InformationalVersion: 2.0 .0+af25552aabd41ce54db2ed417a0dc9390a5dbadf
3+ // AssemblyVersion: 2.1 .0.0
4+ // InformationalVersion: 2.1 .0+d6881059bda1389c20c3dc8eacfd375f4dd752fe
55// TargetFramework: .NETCoreApp,Version=v8.0
66// Configuration: Release
77// Referenced assemblies:
@@ -89,6 +89,12 @@ public static SmartMeterMuninNodeBuilder AddWeeklyCumulativeElectricEnergyPlugin
8989}
9090
9191namespace Smdn . Net . SmartMeter . MuninNode . Hosting {
92+ public class AggregationHaltedException : InvalidOperationException {
93+ public AggregationHaltedException ( ) { }
94+ public AggregationHaltedException ( string message ) { }
95+ public AggregationHaltedException ( string message , Exception ? innerException ) { }
96+ }
97+
9298 public static class IServiceCollectionExtensions {
9399 public static IServiceCollection AddHostedSmartMeterMuninNodeService ( this IServiceCollection services , Action < IRouteBServiceBuilder < string > > configureRouteBServices , Action < MuninNodeOptions > configureMuninNodeOptions , Action < SmartMeterMuninNodeBuilder > configureSmartMeterMuninNode ) { }
94100 public static IServiceCollection AddHostedSmartMeterMuninNodeService < [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicConstructors ) ] TSmartMeterMuninNodeService > ( this IServiceCollection services , Action < IRouteBServiceBuilder < string > > configureRouteBServices , Action < MuninNodeOptions > configureMuninNodeOptions , Action < SmartMeterMuninNodeBuilder > configureSmartMeterMuninNode ) where TSmartMeterMuninNodeService : SmartMeterMuninNodeService { }
@@ -101,6 +107,7 @@ public SmartMeterMuninNodeService(SmartMeterMuninNode smartMeterMuninNode, ILogg
101107
102108 public override void Dispose ( ) { }
103109 protected override async Task ExecuteAsync ( CancellationToken stoppingToken ) { }
110+ protected virtual void OnAggregationHalted ( Exception exception ) { }
104111 protected bool TryGetAggregationFaultedException ( [ NotNullWhen ( true ) ] out Exception ? unhandledAggregationException ) { }
105112 }
106113}
@@ -120,6 +127,7 @@ public SmartMeterMuninNodeSystemdService(SmartMeterMuninNode smartMeterMuninNode
120127 public int ? ExitCode { get ; }
121128
122129 protected virtual bool DetermineExitCodeForUnhandledException ( Exception exception , out int exitCode , [ NotNullWhen ( true ) ] out string ? logMessage ) { }
130+ protected override void OnAggregationHalted ( Exception exception ) { }
123131 public override async Task StartAsync ( CancellationToken cancellationToken ) { }
124132 public override async Task StopAsync ( CancellationToken cancellationToken ) { }
125133 }
0 commit comments