FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.Services.Dialogs Namespace Reference

Classes

class  AvaloniaDialogService
 Avalonia-based implementation of IDialogService that presents informational, confirmation, and input dialogs, and wraps long-running operations in progress dialogs. More...
interface  IDialogService
 Defines dialog workflows for informational prompts, confirmations, input collection, and execution wrappers for long-running asynchronous operations. More...
class  ProgressReporter
 Reports operation progress information to the UI. More...
class  IndeterminateReporter
 Convenience wrapper that forces indeterminate progress reporting. More...
class  CountingReporter
 Convenience wrapper that reports determinate progress based on completed-item counts. More...

Functions

delegate Task< T > AsyncOperation< T > ()
 Represents an asynchronous operation with no cancellation token or progress reporting.
delegate Task< T > CancellableOperation< T > (CancellationToken ct)
 Represents an asynchronous operation that supports cancellation.
delegate Task< T > ReportingOperation< T > (ProgressReporter reporter, CancellationToken ct)
 Represents an asynchronous operation that supports progress reporting and cancellation.

Function Documentation

◆ AsyncOperation< T >()

delegate Task< T > FileSurfer.Core.Services.Dialogs.AsyncOperation< T > ( )

Represents an asynchronous operation with no cancellation token or progress reporting.

Template Parameters
TResult type produced by the operation.
Returns
A task that resolves to the operation result.

◆ CancellableOperation< T >()

delegate Task< T > FileSurfer.Core.Services.Dialogs.CancellableOperation< T > ( CancellationToken ct)

Represents an asynchronous operation that supports cancellation.

Template Parameters
TResult type produced by the operation.
Parameters
ctCancellation token used to stop the operation.
Returns
A task that resolves to the operation result.

◆ ReportingOperation< T >()

delegate Task< T > FileSurfer.Core.Services.Dialogs.ReportingOperation< T > ( ProgressReporter reporter,
CancellationToken ct )

Represents an asynchronous operation that supports progress reporting and cancellation.

Template Parameters
TResult type produced by the operation.
Parameters
reporterProgress reporter used to emit status updates.
ctCancellation token used to stop the operation.
Returns
A task that resolves to the operation result.