FrameHeader
ConsoleMonster.Frames
The frame's title line: title, facts, a thin leader, then the worst states and the observation time.
Inheritance
- object
- FrameHeader
Usage
Explore 27 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 13
- Property DashboardFrame.Header
- Extension method FrameHeader.AddFact
- Extension method FrameHeader.AddFacts
- Extension method FrameHeader.AddState
- Extension method FrameHeader.AddStates
- Extension method FrameHeader.ObservedAt
- Extension method FrameHeader.Title
- Method FrameHeaderFluent.AddFact
- Method FrameHeaderFluent.AddFacts
- Method FrameHeaderFluent.AddState
- Method FrameHeaderFluent.AddStates
- Method FrameHeaderFluent.ObservedAt
- Method FrameHeaderFluent.Title
Accepted by parameters 14
- Extension method DashboardFrame.Header
- Method DashboardFrameFluent.Header
- Extension method FrameHeader.AddFact
- Extension method FrameHeader.AddFacts
- Extension method FrameHeader.AddState
- Extension method FrameHeader.AddStates
- Extension method FrameHeader.ObservedAt
- Extension method FrameHeader.Title
- Method FrameHeaderFluent.AddFact
- Method FrameHeaderFluent.AddFacts
- Method FrameHeaderFluent.AddState
- Method FrameHeaderFluent.AddStates
- Method FrameHeaderFluent.ObservedAt
- Method FrameHeaderFluent.Title
Inherited Methods
Properties
public string Title { get; set; } #The literal title, usually the view name (Replication).
public IList<string> Facts { get; } #Literal facts in order: scope first, then counts. Empty facts are skipped.
public IList<FrameState> States { get; } #States; the frame sorts them worst first and drops zero counts.
public DateTimeOffset? ObservedAt { get; set; } #When the data was observed; shown as local time, with the date when it is not today.
Extension Methods
public static FrameHeader AddFact(FrameHeader frameHeader, string item) #Adds an item to FrameHeader.Facts: Literal facts in order: scope first, then counts. Empty facts are skipped.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- item string
- The item.
public static FrameHeader AddFacts(FrameHeader frameHeader, params string[] items) #Adds items to FrameHeader.Facts: Literal facts in order: scope first, then counts. Empty facts are skipped.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- items string[]
- The items, in order.
public static FrameHeader AddFacts(FrameHeader frameHeader, IEnumerable<string> items) #Adds items to FrameHeader.Facts: Literal facts in order: scope first, then counts. Empty facts are skipped.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static FrameHeader AddState(FrameHeader frameHeader, FrameState item) #Adds an item to FrameHeader.States: States; the frame sorts them worst first and drops zero counts.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- item ConsoleMonster.Frames.FrameState
- The item.
public static FrameHeader AddStates(FrameHeader frameHeader, params FrameState[] items) #Adds items to FrameHeader.States: States; the frame sorts them worst first and drops zero counts.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- items ConsoleMonster.Frames.FrameState[]
- The items, in order.
public static FrameHeader AddStates(FrameHeader frameHeader, IEnumerable<FrameState> items) #Adds items to FrameHeader.States: States; the frame sorts them worst first and drops zero counts.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Frames.FrameState>
- The items, in order.
public static FrameHeader ObservedAt(FrameHeader frameHeader, DateTimeOffset? value) #Sets FrameHeader.ObservedAt: When the data was observed; shown as local time, with the date when it is not today.
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- value System.DateTimeOffset?
- The value.
Examples
// C# initializer or property // C# fluent
frameHeader.ObservedAt = value; frameHeader.ObservedAt(value);public static FrameHeader Title(FrameHeader frameHeader, string value) #Sets FrameHeader.Title: The literal title, usually the view name (Replication).
Parameters
- frameHeader ConsoleMonster.Frames.FrameHeader
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
frameHeader.Title = value; frameHeader.Title(value);