Partager via


IUIThreadOperationTimeoutController Interface

Definition

A controller that enables and controls auto-cancellation of an operation execution by IUIThreadOperationExecutor on a timeout.

public interface class IUIThreadOperationTimeoutController
public interface IUIThreadOperationTimeoutController
type IUIThreadOperationTimeoutController = interface
Public Interface IUIThreadOperationTimeoutController

Properties

CancelAfter

The duration (in milliseconds) after which an operation shouold be auto-cancelled.

Methods

OnDelay()

An event callback raised when a UI thread operation execution took long enough to be considered as a delay. Visual Studio implementation of the IUIThreadOperationExecutor displays a wait dialog at this point.

OnTimeout(Boolean)

An event callback raised when an operation execution timeout was reached.

ShouldCancel()

Gets whether an operation, whose execution time exceeded CancelAfter timeout should be cancelled.

Applies to