Click or drag to resize

ExternalDrivenBackgroundMonitorReporter Class

Reports progress to an ExternalDrivenBackgroundMonitor and supports hierarchical subtasks.
Inheritance Hierarchy
SystemObject
  Altaxo.Main.ServicesExternalDrivenBackgroundMonitorReporter

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class Reporter : IProgressReporter, IProgress<double>, 
	IProgress<string>, IProgress<(string , double )>, 
	IDisposable

The ExternalDrivenBackgroundMonitorReporter type exposes the following members.

Constructors
 NameDescription
Public methodExternalDrivenBackgroundMonitorReporter Initializes a new instance of the ExternalDrivenBackgroundMonitorReporter class.
Top
Properties
 NameDescription
Public propertyCancellationPending Returns true if the activity was cancelled by the user. The script has to check this value periodically. If it is set to true, the script should return.
Public propertyCancellationToken Gets the cancellation token (soft). Typical use of the soft cancellation token is to interrupt some work, without compromising the result (the result typically is incomplete, but not corrupted).
Public propertyCancellationTokenHard Gets the hard-cancellation token.
Protected propertyFractionOfWorkOfParentThe fraction of work the parent has assigned to this subtask.
Public propertyLevel Gets the nesting level of this reporter.
Protected propertyParent Gets the parent reporter, or null if this is the root reporter.
Protected propertyRoot Gets the root monitor that receives the aggregated progress.
Public propertyShouldReportNow True if we should report the progress now. The progress can be reported at any time, but if the evaluation of the progress is costing, then this flag should be viewed first.
Public propertyTaskName Gets the name to show while the task is active.
Top
Methods
 NameDescription
Public methodCreateSubTask Creates a named subtask.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodEhSubTaskReport Is called from the child subtasks.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSubTask(Double) Creates a nested task.
Public methodGetSubTask(Double, CancellationToken, CancellationToken) Creates a subtask with explicit cancellation tokens.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReport(Double)Reports a progress update.
Public methodReport(String)Reports a progress update.
Public methodReport(ValueTupleString, Double)Reports a progress update.
Public methodReportProgress(String) Reports the progress as a text string.
Public methodReportProgress(String, Double) Reports the progress as a text string.
Public methodReportStatus Sets the operation status. Note: the status of the whole operation is the most severe status of all nested monitors. The more severe value persists even if the child monitor gets disposed.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also