ConsoleDashboardOptionsFluent
ConsoleMonster.Hosting
The fluent methods of ConsoleDashboardOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- ConsoleDashboardOptionsFluent
Methods
public static ConsoleDashboardOptions KeepFinalState(ConsoleDashboardOptions consoleDashboardOptions, bool value = true) #Sets ConsoleDashboardOptions.KeepFinalState: Whether the dashboard's final state stays in the scrollback when the host stops (default true).
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { KeepFinalState = value }; consoleDashboardOptions.KeepFinalState(value);public static ConsoleDashboardOptions LogHeight(ConsoleDashboardOptions consoleDashboardOptions, int value) #Sets ConsoleDashboardOptions.LogHeight: The log region's height in rows (default 8).
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { LogHeight = value }; consoleDashboardOptions.LogHeight(value);public static ConsoleDashboardOptions Mode(ConsoleDashboardOptions consoleDashboardOptions, ConsoleDashboardMode value) #Sets ConsoleDashboardOptions.Mode: When the dashboard is shown (default ConsoleDashboardMode.Auto).
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value ConsoleMonster.Hosting.ConsoleDashboardMode
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { Mode = value }; consoleDashboardOptions.Mode(value);public static ConsoleDashboardOptions ServiceNameBy(ConsoleDashboardOptions consoleDashboardOptions, Func<Type, string>? value) #Sets ConsoleDashboardOptions.ServiceName: Gives a hosted service its name in the dashboard, or null for its type name (generic arguments and a "Service" or "HostedService" suffix left out).
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value System.Func<System.Type, string>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { ServiceName = value }; consoleDashboardOptions.ServiceNameBy(value);public static ConsoleDashboardOptions ShowLog(ConsoleDashboardOptions consoleDashboardOptions, bool value = true) #Sets ConsoleDashboardOptions.ShowLog: Whether the log region is shown (default true); ConsoleMonster.Extensions.Logging writes into it.
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { ShowLog = value }; consoleDashboardOptions.ShowLog(value);public static ConsoleDashboardOptions ShowServices(ConsoleDashboardOptions consoleDashboardOptions, bool value = true) #Sets ConsoleDashboardOptions.ShowServices: Whether the hosted services are listed (default true).
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { ShowServices = value }; consoleDashboardOptions.ShowServices(value);public static ConsoleDashboardOptions Title(ConsoleDashboardOptions consoleDashboardOptions, string? value) #Sets ConsoleDashboardOptions.Title: The title in the header, or null for the application name.
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { Title = value }; consoleDashboardOptions.Title(value);