IDispatcher Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the core event message dispatcher. Instances of this type are responsible for processing the window messages and dispatching the events to the client.
public interface class IDispatcher
public interface IDispatcher
type IDispatcher = interface
Public Interface IDispatcher
- Derived
Properties
IsDispatchRequired |
Gets a value that indicates whether dispatching is required for this action. |
Methods
CreateTimer() |
Creates a new instance of an IDispatcherTimer object associated with this dispatcher. |
Dispatch(Action) |
Schedules the provided action on the UI thread from a worker thread. |
DispatchDelayed(TimeSpan, Action) |
Schedules the provided action on the UI thread from a worker thread, taking into account the provided delay. |
Extension Methods
DispatchAsync(IDispatcher, Action) |
Schedules the provided action on the UI thread from a worker thread. |
DispatchAsync(IDispatcher, Func<Task>) |
Schedules the provided function on the UI thread from a worker thread. |
DispatchAsync<T>(IDispatcher, Func<T>) |
Schedules the provided callback on the UI thread from a worker thread, and returns the results asynchronously. |
DispatchAsync<T>(IDispatcher, Func<Task<T>>) |
Schedules the provided function on the UI thread from a worker thread. |
GetSynchronizationContextAsync(IDispatcher) |
Gets the synchronization context for the current thread. |
StartTimer(IDispatcher, TimeSpan, Func<Boolean>) |
Starts a timer on the specified IDispatcher context. |
Applies to
.NET MAUI
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기