/// <summary>
 /// Adds all standard actuators to the application
 /// </summary>
 /// <param name="hostBuilder">Your HostBuilder</param>
 /// <param name="configureEndpoints">Customize endpoint behavior. Useful for tailoring auth requirements</param>
 /// <param name="mediaTypeVersion">Specify the media type version to use in the response</param>
 /// <remarks>Does not add platform specific features (like for Cloud Foundry or Kubernetes)</remarks>
 public static IHostBuilder AddAllActuators(this IHostBuilder hostBuilder, Action <IEndpointConventionBuilder> configureEndpoints = null, MediaTypeVersion mediaTypeVersion = MediaTypeVersion.V2)
 => hostBuilder
 .AddDynamicLogging()
 .ConfigureServices((context, collection) =>
 {
     collection.AddAllActuators(context.Configuration, mediaTypeVersion);
     ActivateActuatorEndpoints(collection, configureEndpoints);
 });
 /// <summary>
 /// Adds the Loggers actuator to the application
 /// </summary>
 /// <param name="hostBuilder">Your HostBuilder</param>
 public static IHostBuilder AddLoggersActuator(this IHostBuilder hostBuilder)
 => hostBuilder
 .AddDynamicLogging()
 .ConfigureServices((context, collection) =>
 {
     collection.AddLoggersActuator(context.Configuration);
     ActivateActuatorEndpoints(collection);
 });
 public static IHostBuilder AddAllActuators(this IHostBuilder hostBuilder, Action <IEndpointConventionBuilder> configureEndpoints = null, MediaTypeVersion mediaTypeVersion = MediaTypeVersion.V2)
 {
     return(hostBuilder
            .AddDynamicLogging()
            .ConfigureServices((context, collection) =>
     {
         collection.AddAllActuators(context.Configuration, mediaTypeVersion);
         collection.AddTransient <IStartupFilter, AllActuatorsStartupFilter>(provider => new AllActuatorsStartupFilter(configureEndpoints));
     }));
 }
 /// <summary>
 /// Adds the Loggers actuator to the application
 /// </summary>
 /// <param name="hostBuilder">Your HostBuilder</param>
 public static IHostBuilder AddLoggersActuator(this IHostBuilder hostBuilder)
 {
     return(hostBuilder
            .AddDynamicLogging()
            .ConfigureServices((context, collection) =>
     {
         collection.AddLoggersActuator(context.Configuration);
         collection.AddTransient <IStartupFilter, LoggersStartupFilter>();
     }));
 }