C# 클래스 Catel.Services.IPleaseWaitServiceExtensions

IPleaseWaitService extensions.
파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
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