Skip to content
ChartForgeX
Class

TopologyScenario

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent

Describes an interactive path or story through a topology chart.

Inheritance

  • object
  • TopologyScenario

Usage

Explore 66 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.

Accepted by parameters 36

Constructors

public TopologyScenario() #

Properties

public string Id { get; set; } #

Gets or sets the stable scenario identifier.

public string Label { get; set; } #

Gets or sets the scenario label used by host controls.

public string? Description { get; set; } #

Gets or sets an optional scenario description.

public string? Color { get; set; } #

Gets or sets an optional scenario accent color: a CSS color such as #2563eb, rgb(37 99 235) or a named color.

Exceptions

  • ArgumentException – The value contains characters outside a CSS color.
public int PlaybackDelayMilliseconds { get; set; } #

Gets or sets the default time each route step remains visible during playback.

public bool LoopPlayback { get; set; } #

Gets or sets whether playback returns to the first route step after the last.

public bool AutoPlay { get; set; } #

Gets or sets whether an HTML adapter may start playback automatically when motion is allowed.

public bool Spotlight { get; set; } #

Gets or sets whether non-route members are dimmed for a focused review.

public List<TopologyScenarioStep> Steps { get; } #

Gets ordered node and edge references that participate in the scenario.

public Dictionary<string, string> Metadata { get; } #

Gets arbitrary scenario metadata for host adapters.

Extension Methods

public static TopologyScenario AddEdgeStep(TopologyScenario scenario, string edgeId, string? label = null, string? description = null, Action<TopologyScenarioStep>? configure = null) #

Adds a scenario segment that references an existing topology edge.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
edgeId string required
The edge id.
label string? = null optional
The optional segment label.
description string? = null optional
The optional segment description.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null optional
Optional step configuration.

Returns

TopologyScenario The current scenario.
public static TopologyScenario AddMessageStep(TopologyScenario scenario, string edgeId, TopologyScenarioInteraction interaction, string? label = null, bool reverse = false, Action<TopologyScenarioStep>? configure = null) #

Adds a request, message, response, or failure that travels over an existing topology edge.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
edgeId string required
The edge the step travels over.
interaction ChartForgeX.Topology.TopologyScenarioInteraction required
What happens on the edge.
label string? = null optional
The optional step label, such as POST /notes or 201 Created.
reverse bool = false optional
Whether the step travels from the edge target to the edge source.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null optional
Optional step configuration.

Returns

TopologyScenario The current scenario.
public static TopologyScenario AddNodeStep(TopologyScenario scenario, string nodeId, string? label = null, string? description = null, Action<TopologyScenarioStep>? configure = null) #

Adds a scenario hop that references an existing topology node.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
nodeId string required
The node id.
label string? = null optional
The optional hop label.
description string? = null optional
The optional hop description.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null optional
Optional step configuration.

Returns

TopologyScenario The current scenario.
public static TopologyScenario AutoPlay(TopologyScenario topologyScenario, bool value = true) #

Sets TopologyScenario.AutoPlay: Gets or sets whether an HTML adapter may start playback automatically when motion is allowed.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { AutoPlay = value };    topologyScenario.AutoPlay(value);
public static TopologyScenario Color(TopologyScenario topologyScenario, string? value) #

Sets TopologyScenario.Color: Gets or sets an optional scenario accent color: a CSS color such as #2563eb, rgb(37 99 235) or a named color.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string? required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Color = value };    topologyScenario.Color(value);
public static TopologyScenario Description(TopologyScenario topologyScenario, string? value) #

Sets TopologyScenario.Description: Gets or sets an optional scenario description.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string? required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Description = value };    topologyScenario.Description(value);
public static TopologyScenario Id(TopologyScenario topologyScenario, string value) #

Sets TopologyScenario.Id: Gets or sets the stable scenario identifier.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Id = value };    topologyScenario.Id(value);
public static TopologyScenario Label(TopologyScenario topologyScenario, string value) #

Sets TopologyScenario.Label: Gets or sets the scenario label used by host controls.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Label = value };    topologyScenario.Label(value);
public static TopologyScenario LoopPlayback(TopologyScenario topologyScenario, bool value = true) #

Sets TopologyScenario.LoopPlayback: Gets or sets whether playback returns to the first route step after the last.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { LoopPlayback = value };    topologyScenario.LoopPlayback(value);
public static TopologyScenario Metadata(TopologyScenario scenario, string key, string? value) #

Adds host-readable metadata to a topology scenario.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
key string required
The metadata key.
value string? required
The metadata value.

Returns

TopologyScenario The current scenario.
public static TopologyScenario PlaybackDelayMilliseconds(TopologyScenario topologyScenario, int value) #

Sets TopologyScenario.PlaybackDelayMilliseconds: Gets or sets the default time each route step remains visible during playback.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value int required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { PlaybackDelayMilliseconds = value };    topologyScenario.PlaybackDelayMilliseconds(value);
public static TopologyScenario Spotlight(TopologyScenario topologyScenario, bool value = true) #

Sets TopologyScenario.Spotlight: Gets or sets whether non-route members are dimmed for a focused review.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Spotlight = value };    topologyScenario.Spotlight(value);
Step 2 overloads
public static TopologyScenario Step(TopologyScenario topologyScenario, TopologyScenarioStep item) #

Adds an item to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
item ChartForgeX.Topology.TopologyScenarioStep required
The item.

Returns

TopologyScenario The same instance.
public static TopologyScenario Step(TopologyScenario topologyScenario, Action<TopologyScenarioStep> configure) #

Creates an item, configures it and adds it to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep> required
Configures the new item before it is added.

Returns

TopologyScenario The same instance.
public static TopologyScenario Steps(TopologyScenario topologyScenario, IEnumerable<TopologyScenarioStep> items) #

Adds items to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyScenarioStep> required
The items, in order.

Returns

TopologyScenario The same instance.