C# Class Base.CometAsyncResult

Inheritance: IAsyncResult
显示文件 Open project: Appacts/mobile-analytics-server

Public Properties

Property Type Description
Callback AsyncCallback
Context System.Web.HttpContext
Positive bool

Public Methods

Method Description
CometAsyncResult ( ) : System

Default constructor. Can be used when request completed synchronously. In this case must set CompletedSynchronously to true.

CometAsyncResult ( HttpContext context, AsyncCallback asyncCallback, int accountId, int dataId ) : System

Initializes a new instance of the CometAsyncResult class.

Method Details

CometAsyncResult() public method

Default constructor. Can be used when request completed synchronously. In this case must set CompletedSynchronously to true.
public CometAsyncResult ( ) : System
return System

CometAsyncResult() public method

Initializes a new instance of the CometAsyncResult class.
public CometAsyncResult ( HttpContext context, AsyncCallback asyncCallback, int accountId, int dataId ) : System
context System.Web.HttpContext The context.
asyncCallback AsyncCallback The async callback.
accountId int The account id.
dataId int The data id.
return System

Property Details

Callback public_oe property

Callback that will be called when operation is completed (When we have notification about hanges, or timeout)
public AsyncCallback Callback
return AsyncCallback

Context public_oe property

public HttpContext,System.Web Context
return System.Web.HttpContext

Positive public_oe property

True when there is notification, False if timeout
public bool Positive
return bool