Class
ConsoleDashboardServiceCollectionExtensions
ConsoleMonster.Hosting
Adds the ConsoleMonster console dashboard to a generic host.
Inheritance
- object
- ConsoleDashboardServiceCollectionExtensions
Methods
public static IServiceCollection AddConsoleDashboard(IServiceCollection services, Action<ConsoleDashboardOptions>? configure = null) #Adds a live console dashboard that shows the hosted services registered so far (call it after AddHostedService), their state and elapsed lifetime through their own stop, completion or failure, the entries the application reports through IConsoleDashboard (with time in their current state), and the log region ConsoleMonster.Extensions.Logging writes into. It draws only on an interactive terminal; redirected output, CI, Windows services and daemons run the host unchanged.
Parameters
- services Microsoft.Extensions.DependencyInjection.IServiceCollection
- The service collection.
- configure System.Action<ConsoleMonster.Hosting.ConsoleDashboardOptions>? = null
- Changes the options, or null for the defaults.
Returns
IServiceCollection The service collection.