C# 클래스 WebApplications.Utilities.Threading.AsyncResult

상속: IAsyncResult
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AsyncCallbackCompleteOpHelperNoReturnValue void
CallingThreadShouldSetTheEvent bool
CompleteOpHelper void
WaitCallbackCompleteOpHelperNoReturnValue void

공개 메소드들

메소드 설명
AsyncResult ( AsyncCallback asyncCallback, object state ) : System

Initializes a new instance of the AsyncResult class.

AsyncResult ( AsyncCallback asyncCallback, object state, object initiatingObject ) : System

Initializes a new instance of the AsyncResult class.

EndInvoke ( ) : void

Frees up the resources used by the asynchronous operation. If the asynchronous operation failed then this method throws the exception.

SetAsCancelled ( ) : void

Set the status of the asynchronous operation to cancelled.

SetAsCompleted ( Exception exception = null, bool completedSynchronously = false ) : void

Set the status of the asynchronous operation to completed.

보호된 메소드들

메소드 설명
BeginInvokeOnWorkerThread ( ) : IAsyncResult

Returns the status of an operation that was queued to the thread pool.

GetAsyncCallbackHelper ( ) : AsyncCallback

Returns a single delegate to a method that will invoke the desired AsyncCallback

OnCompleteOperation ( IAsyncResult result ) : void

비공개 메소드들

메소드 설명
AsyncCallbackCompleteOpHelperNoReturnValue ( [ otherAsyncResult ) : void
CallingThreadShouldSetTheEvent ( ) : bool
CompleteOpHelper ( IAsyncResult ar ) : void

A helper function used to run the callback on the completed asynchronous operation.

WaitCallbackCompleteOpHelperNoReturnValue ( [ o ) : void

메소드 상세

AsyncResult() 공개 메소드

Initializes a new instance of the AsyncResult class.
public AsyncResult ( AsyncCallback asyncCallback, object state ) : System
asyncCallback AsyncCallback The method to execute once the operation completes.
state object /// The object that can be obtained via the property. ///
리턴 System

AsyncResult() 공개 메소드

Initializes a new instance of the AsyncResult class.
public AsyncResult ( AsyncCallback asyncCallback, object state, object initiatingObject ) : System
asyncCallback AsyncCallback The method that should be executed when the operation completes.
state object The object that can be obtained via the AsyncState property.
initiatingObject object /// The object that is initiating the asynchronous operation. /// This is stored in the property. ///
리턴 System

BeginInvokeOnWorkerThread() 보호된 메소드

Returns the status of an operation that was queued to the thread pool.
protected BeginInvokeOnWorkerThread ( ) : IAsyncResult
리턴 IAsyncResult

EndInvoke() 공개 메소드

Frees up the resources used by the asynchronous operation. If the asynchronous operation failed then this method throws the exception.
public EndInvoke ( ) : void
리턴 void

GetAsyncCallbackHelper() 보호된 정적인 메소드

Returns a single delegate to a method that will invoke the desired AsyncCallback
protected static GetAsyncCallbackHelper ( ) : AsyncCallback
리턴 AsyncCallback

OnCompleteOperation() 보호된 메소드

protected OnCompleteOperation ( IAsyncResult result ) : void
result IAsyncResult
리턴 void

SetAsCancelled() 공개 메소드

Set the status of the asynchronous operation to cancelled.
public SetAsCancelled ( ) : void
리턴 void

SetAsCompleted() 공개 메소드

Set the status of the asynchronous operation to completed.
The operation result has already been set previously.
public SetAsCompleted ( Exception exception = null, bool completedSynchronously = false ) : void
exception System.Exception /// If non-null then this identifies the exception that occurred while processing the asynchronous operation. ///
completedSynchronously bool Indicates whether the operation completed synchronously or asynchronously.
리턴 void