# BackgroundWorkDialogService class

The default IBackgroundWorkDialogService implementation. It behaves exactly like [`DialogService`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/DialogService/index.md); the separate type exists only so that progress dialogs can be resolved and substituted independently of the ordinary dialogs.

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Avalonia.Controls.ApplicationServices.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls.ApplicationServices](https://www.nuget.org/packages/Eremex.Avalonia.Controls.ApplicationServices)

## Declaration

```csharp
public class BackgroundWorkDialogService : DialogService, IBackgroundWorkDialogService
```

## Constructors

| name | description |
| --- | --- |
| [BackgroundWorkDialogService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/BackgroundWorkDialogService/BackgroundWorkDialogService/index.md)() | Legacy bridge for code that creates the service directly, without a container. Requires an initialized [`Current`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/ApplicationServicesContext/Current/index.md). |
| [BackgroundWorkDialogService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/BackgroundWorkDialogService/BackgroundWorkDialogService/index.md)(…) | Primary constructor. Dependencies are passed explicitly, so the service can be created by any DI container and substituted in tests. |

## See Also

* class [DialogService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/DialogService/index.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
