HostingFluent
ConsoleMonster.Hosting
The fluent methods of ConsoleDashboardOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- HostingFluent
Methods
public static ConsoleDashboardOptions Configure(ConsoleDashboardOptions consoleDashboardOptions, Action<ConsoleDashboardOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- configure System.Action<ConsoleMonster.Hosting.ConsoleDashboardOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { ServiceName = value }; consoleDashboardOptions.Configure(configured => configured.ServiceName = value);public static ConsoleDashboardOptions KeepFinalState(ConsoleDashboardOptions consoleDashboardOptions, bool value) #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
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { KeepFinalState = value }; consoleDashboardOptions.KeepFinalState(value);public static ConsoleDashboardOptions KeepFinalState(ConsoleDashboardOptions consoleDashboardOptions) #Sets ConsoleDashboardOptions.KeepFinalState to true.
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance to configure.
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 ShowLog(ConsoleDashboardOptions consoleDashboardOptions, bool value) #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
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { ShowLog = value }; consoleDashboardOptions.ShowLog(value);public static ConsoleDashboardOptions ShowLog(ConsoleDashboardOptions consoleDashboardOptions) #Sets ConsoleDashboardOptions.ShowLog to true.
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance to configure.
public static ConsoleDashboardOptions ShowServices(ConsoleDashboardOptions consoleDashboardOptions, bool value) #Sets ConsoleDashboardOptions.ShowServices: Whether the hosted services are listed (default true).
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Hosting.ConsoleDashboardOptions { ShowServices = value }; consoleDashboardOptions.ShowServices(value);public static ConsoleDashboardOptions ShowServices(ConsoleDashboardOptions consoleDashboardOptions) #Sets ConsoleDashboardOptions.ShowServices to true.
Parameters
- consoleDashboardOptions ConsoleMonster.Hosting.ConsoleDashboardOptions
- The instance to configure.
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);