示例#1
0
 public HealthRegistration(
     IHealthFetcher healthFetcher,
     IContextManagement contextManagement,
     IMetricMetadataFactory metadataFactory,
     IConfigurationProvider configurationProvider)
 {
     _healthFetcher         = healthFetcher;
     _contextManagement     = contextManagement;
     _metadataFactory       = metadataFactory;
     _configurationProvider = configurationProvider;
 }
 public void Register <TMessage>(IContextManagement ctxManagement, IMessageProcessor processor)
 => Register <TMessage>(ctxManagement.Load, processor.Process, ctxManagement.Update);