WorkflowServiceHost.OnBeginClose(TimeSpan, AsyncCallback, Object) 方法
定义
开始在工作流服务主机关闭时调用的异步操作。Begins an asynchronous operation invoked when the workflow service host is closed.
protected:
override IAsyncResult ^ OnBeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected override IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object state);
override this.OnBeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overrides Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
参数
- timeout
- TimeSpan
一段时间,必须在此时间内完成异步关闭操作,否则将会超时。The period of time the asynchronous close operation has to complete before timing out.
- callback
- AsyncCallback
用于接收异步关闭操作完成通知的异步回调委托。The asynchronous callback delegate that receives notification of the completion of the asynchronous close operation.
- state
- Object
与异步关闭操作关联的用户定义的状态数据。User-define state data that is associated with the asynchronous close operation.
返回
对异步关闭操作的引用。A reference to the asynchronous close operation.