C# 클래스 Microsoft.HockeyApp.AsyncSynchronizationContext

Wrapper around a standard synchronization context, that catches any unhandled exceptions. Acts as a facade passing calls to the original SynchronizationContext
상속: System.Threading.SynchronizationContext
파일 보기 프로젝트 열기: bitstadium/HockeySDK-Windows 1 사용 예제들

공개 메소드들

메소드 설명
AsyncSynchronizationContext ( SynchronizationContext syncContext ) : System

Initializes a new instance of the AsyncSynchronizationContext class.

CreateCopy ( ) : SynchronizationContext

When overridden in a derived class, creates a copy of the synchronization context.

OperationCompleted ( ) : void

When overridden in a derived class, responds to the notification that an operation has completed.

OperationStarted ( ) : void

When overridden in a derived class, responds to the notification that an operation has started.

Post ( SendOrPostCallback d, object state ) : void

When overridden in a derived class, dispatches an asynchronous message to a synchronization context.

Register ( ) : AsyncSynchronizationContext

Registration method. Call this from OnLaunched and OnActivated inside the App.xaml.cs

RegisterForFrame ( System.Windows.Controls.Frame rootFrame, CrashHandler handler ) : AsyncSynchronizationContext

Links the synchronization context to the specified frame and ensures that it is still in use after each navigation event

Send ( SendOrPostCallback d, object state ) : void

When overridden in a derived class, dispatches a synchronous message to a synchronization context.

비공개 메소드들

메소드 설명
EnsureContext ( SynchronizationContext context ) : void
WrapCallback ( SendOrPostCallback sendOrPostCallback ) : SendOrPostCallback

메소드 상세

AsyncSynchronizationContext() 공개 메소드

Initializes a new instance of the AsyncSynchronizationContext class.
public AsyncSynchronizationContext ( SynchronizationContext syncContext ) : System
syncContext System.Threading.SynchronizationContext The synchronize context.
리턴 System

CreateCopy() 공개 메소드

When overridden in a derived class, creates a copy of the synchronization context.
public CreateCopy ( ) : SynchronizationContext
리턴 System.Threading.SynchronizationContext

OperationCompleted() 공개 메소드

When overridden in a derived class, responds to the notification that an operation has completed.
public OperationCompleted ( ) : void
리턴 void

OperationStarted() 공개 메소드

When overridden in a derived class, responds to the notification that an operation has started.
public OperationStarted ( ) : void
리턴 void

Post() 공개 메소드

When overridden in a derived class, dispatches an asynchronous message to a synchronization context.
public Post ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback The delegate to call.
state object The object passed to the delegate.
리턴 void

Register() 공개 정적인 메소드

Registration method. Call this from OnLaunched and OnActivated inside the App.xaml.cs
public static Register ( ) : AsyncSynchronizationContext
리턴 AsyncSynchronizationContext

RegisterForFrame() 공개 정적인 메소드

Links the synchronization context to the specified frame and ensures that it is still in use after each navigation event
rootFrame
public static RegisterForFrame ( System.Windows.Controls.Frame rootFrame, CrashHandler handler ) : AsyncSynchronizationContext
rootFrame System.Windows.Controls.Frame The root frame.
handler CrashHandler The handler.
리턴 AsyncSynchronizationContext

Send() 공개 메소드

When overridden in a derived class, dispatches a synchronous message to a synchronization context.
public Send ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback The delegate to call.
state object The object passed to the delegate.
리턴 void