C# Класс Catel.Services.IPleaseWaitServiceExtensions

IPleaseWaitService extensions.
Показать файл Открыть проект

Открытые методы

Метод Описание
HideTemporarily ( this pleaseWaitService ) : IDisposable

Hides the please wait service temporarily by storing the show counter and restoring it afterwards.

PushInScope ( this pleaseWaitService ) : IDisposable

Calls IPleaseWaitService.Push and returns a disposable token. As soon as the token is disposed, it will call IPleaseWaitService.Pop. This is a great way to safely show a busy indicator and ensure that the indicator hides, even when an exception occurs.

Описание методов

HideTemporarily() публичный статический Метод

Hides the please wait service temporarily by storing the show counter and restoring it afterwards.
public static HideTemporarily ( this pleaseWaitService ) : IDisposable
pleaseWaitService this
Результат IDisposable

PushInScope() публичный статический Метод

Calls IPleaseWaitService.Push and returns a disposable token. As soon as the token is disposed, it will call IPleaseWaitService.Pop. This is a great way to safely show a busy indicator and ensure that the indicator hides, even when an exception occurs.
public static PushInScope ( this pleaseWaitService ) : IDisposable
pleaseWaitService this The please wait service.
Результат IDisposable