API Reference
Class
TerminalScope
Ambient progress reporting that flows with the asynchronous execution context.
Inheritance
- Object
- TerminalScope
Methods
public static Void Advance(Double amount = 1) #Returns:
VoidAdvances the ambient item.
Parameters
- amount System.Double = 1
- Increment, default one.
public static IDisposable Begin(ILiveDispatcher dispatcher, String target, String? key = null) #Returns:
IDisposableBegins a scope. Dispose it in the same execution context to restore the previous scope.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- Event destination.
- target System.String
- Target name.
- key System.String? = null
- Optional item key.
Returns
The scope lifetime.
public static Void Log(String text, String level = "info") #Returns:
VoidWrites to the ambient dispatcher's log target.
Parameters
- text System.String
- Log line.
- level System.String = "info"
- Log level.
public static Void Report(String text) #Returns:
VoidReports detail to the ambient item.
Parameters
- text System.String
- Detail text.
public static Void SetState(String state, String? text = null) #Returns:
VoidChanges the ambient item's state.
Parameters
- state System.String
- State word.
- text System.String? = null
- Optional detail.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?