# IDispatcherService interface

Marshals work onto the UI thread, so that view model code can update the UI without referencing the UI framework dispatcher directly.

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Common.Contracts.dll`  
**NuGet Package:** [Eremex.Common.Contracts](https://www.nuget.org/packages/Eremex.Common.Contracts)

## Declaration

```csharp
public interface IDispatcherService
```

## Methods

| name | description |
| --- | --- |
| [CheckAccess](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IDispatcherService/CheckAccess/index.md)() | Returns whether the calling thread is the UI thread. |
| [Post](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IDispatcherService/Post/index.md)(…) | Queues the action to run on the UI thread and returns immediately. |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
