NanoByte.Common  2.6.1
NanoByte.Common.Tasks.Progress< T > Class Template Reference

Reports progress updates using callbacks/events. Performs the callbacks using the synchronization context of the original caller. More...

Inheritance diagram for NanoByte.Common.Tasks.Progress< T >:

Public Member Functions

 Progress (Action< T >? callback=null)
 Captures the current synchronization context for callbacks. More...
 

Protected Member Functions

virtual void OnReport (T value)
 

Events

Action< T >? ProgressChanged
 Raised for each reported progress value. More...
 

Detailed Description

Reports progress updates using callbacks/events. Performs the callbacks using the synchronization context of the original caller.

Unlike the built-in Progress type of .NET the NanoByte.Common variant supports remoting.

Constructor & Destructor Documentation

◆ Progress()

NanoByte.Common.Tasks.Progress< T >.Progress ( Action< T >?  callback = null)
inline

Captures the current synchronization context for callbacks.

Event Documentation

◆ ProgressChanged

Action<T>? NanoByte.Common.Tasks.Progress< T >.ProgressChanged

Raised for each reported progress value.


The documentation for this class was generated from the following file: