NanoByte.Common  2.9.0
NanoByte.Common.Threading.SynchronousProgress< T > Class Template Reference

Reports progress updates using callbacks/events. Performs the callbacks immediately on the same thread. More...

Inheritance diagram for NanoByte.Common.Threading.SynchronousProgress< T >:

Public Member Functions

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

Protected Member Functions

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 immediately on the same thread.

Constructor & Destructor Documentation

◆ SynchronousProgress()

NanoByte.Common.Threading.SynchronousProgress< T >.SynchronousProgress ( Action< T >?  callback = null)
inline

Captures the current synchronization context for callbacks.

Event Documentation

◆ ProgressChanged

Action<T>? NanoByte.Common.Threading.SynchronousProgress< T >.ProgressChanged

Raised for each reported progress value.


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