FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Windows.Services.Shell.StaWorkerSync Class Referencesealed

Executes queued work synchronously on a dedicated STA background thread. More...

Inheritance diagram for FileSurfer.Windows.Services.Shell.StaWorkerSync:
Collaboration diagram for FileSurfer.Windows.Services.Shell.StaWorkerSync:

Public Member Functions

 StaWorkerSync (string name)
 Initializes a new STA worker thread with the provided thread name.
T Invoke< T > (Func< T > func)
 Invokes work on the STA worker thread and returns its result.
void Dispose ()

Detailed Description

Executes queued work synchronously on a dedicated STA background thread.

Constructor & Destructor Documentation

◆ StaWorkerSync()

FileSurfer.Windows.Services.Shell.StaWorkerSync.StaWorkerSync ( string name)
inline

Initializes a new STA worker thread with the provided thread name.

Parameters
nameThe worker thread name.

Member Function Documentation

◆ Dispose()

void FileSurfer.Windows.Services.Shell.StaWorkerSync.Dispose ( )
inline

◆ Invoke< T >()

T FileSurfer.Windows.Services.Shell.StaWorkerSync.Invoke< T > ( Func< T > func)
inline

Invokes work on the STA worker thread and returns its result.

Parameters
funcThe function to execute.
Returns
The function result.

The documentation for this class was generated from the following file:
  • /home/janecea/Documents/CODE/PROJECTS/FileSurfer/src/FileSurfer.Windows/Services/Shell/StaWorkerSync.cs