Class CortexConfiguration
Configuration parameters for an ISharedState instance.
Inheritance
Namespace: Cortex.Net
Assembly: Cortex.Net.dll
Syntax
public class CortexConfiguration : object
Constructors
| Improve this Doc View SourceCortexConfiguration()
Initializes a new instance of the CortexConfiguration class.
Declaration
public CortexConfiguration()
Properties
| Improve this Doc View SourceAutoscheduleActions
Gets or sets a value indicating whether to automatically schedule actions on a UI thread.
Declaration
public bool AutoscheduleActions { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ComputedRequiresReaction
Gets or sets a value indicating whether a ComputedValue<T> instance requires a reactive context.
Declaration
public bool ComputedRequiresReaction { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DisableErrorBoundaries
Gets or sets a value indicating whether to catch and rethrow exceptions. This is useful for inspecting the state of the stack when an exception occurs while debugging.
Declaration
public bool DisableErrorBoundaries { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Enabling this setting makes it possible for the graph to be left in an inconsistent state. Do not enable this in production.
EnforceActions
Gets or sets a value that defines how strict modification of state should be enforced.
Declaration
public EnforceAction EnforceActions { get; set; }
Property Value
Type | Description |
---|---|
EnforceAction |
MaxReactionIteractions
Gets or sets the Maximum number of reaction iterations that is allowed.
Declaration
public int MaxReactionIteractions { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ObservableRequiresReaction
Gets or sets a value indicating whether to warn if observables are accessed outside a reactive context.
Declaration
public bool ObservableRequiresReaction { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ReactionRequiresObservable
Gets or sets a value indicating whether to warn if reactions are required to visit at least one observable.
Declaration
public bool ReactionRequiresObservable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SynchronizationContext
Gets or sets the SynchronizationContext that will be used for Reactions.
Declaration
public SynchronizationContext SynchronizationContext { get; set; }
Property Value
Type | Description |
---|---|
SynchronizationContext |