SimpleResult.cs
上传用户:szgaoree
上传日期:2009-01-05
资源大小:74k
文件大小:1k
- using System;
- namespace AjaxPro
- {
- public class SimpleResult : IAsyncResult
- {
- private bool m_Completed = false;
- public bool IsCompleted
- {
- get
- {
- return m_Completed;
- }
- set
- {
- lock(this)
- {
- m_Completed = value;
- }
- }
- }
- #region Implementation of IAsyncResult
- public object AsyncState
- {
- get
- {
- return null;
- }
- }
- public bool CompletedSynchronously
- {
- get
- {
- return false;
- }
- }
- public System.Threading.WaitHandle AsyncWaitHandle
- {
- get
- {
- return this.AsyncWaitHandle;
- }
- }
- #endregion
- }
- }