Photon Server API Documentation v5.0RC1

Classes | Enumerations | Functions
Photon.SocketServer.Net Namespace Reference

Classes

class  AsyncHttpRequest
 
class  AsyncRequestHttpException
 
class  HttpRequestQueue
 
class  HttpRequestQueueCounterWrapper
 we use this class to call external counters interface safely More...
 
interface  IHttpRequestQueueCounters
 
class  NullHttpRequestQueueCounters
 

Enumerations

enum  AsyncHttpRequestStatus {
  AsyncHttpRequestStatus.Created, AsyncHttpRequestStatus.Running, AsyncHttpRequestStatus.Completed, AsyncHttpRequestStatus.Faulted,
  AsyncHttpRequestStatus.Canceled
}
 
enum  AsyncRequestStage {
  AsyncRequestStage.Creted, AsyncRequestStage.GetAsyncCalled, AsyncRequestStage.DoGetAsyncScheduled, AsyncRequestStage.CancelCalled,
  AsyncRequestStage.CancelFinished, AsyncRequestStage.PostAsyncCalled, AsyncRequestStage.DoPostAsyncScheduled, AsyncRequestStage.CleanupCalled,
  AsyncRequestStage.CleanupFinished, AsyncRequestStage.DoGetAsyncCalled, AsyncRequestStage.CallingBeginGetResponse, AsyncRequestStage.DoPostAsyncCalled,
  AsyncRequestStage.CallingBeginGetRequestStream, AsyncRequestStage.EndRequestCalled, AsyncRequestStage.UserCallbackCalled, AsyncRequestStage.GetRequestStreamCallbackCalled,
  AsyncRequestStage.GetRequestStreamCallbackFailedToUpdateStatus, AsyncRequestStage.WebRequestEndGetRequestStream, AsyncRequestStage.GetResponseCallBackCalled, AsyncRequestStage.GetResponseCallBackFailedToGetResponse,
  AsyncRequestStage.WebResponseStreamBeginReadCalled, AsyncRequestStage.ReadCallbackCalled, AsyncRequestStage.WebResponseStreamEndReadCalled, AsyncRequestStage.WebResponseStreamReadingFinished,
  AsyncRequestStage.ReadCallbackWebResponseStreamBeginReadCalled, AsyncRequestStage.SetExceptionCalled, AsyncRequestStage.SetExceptionOnceCalled, AsyncRequestStage.SetTimeoutExceptionCalled,
  AsyncRequestStage.TimeoutCallbackWithTimeoutIsCalled, AsyncRequestStage.TimeoutCallbackFailedUpdateStatus, AsyncRequestStage.SetExceptionOnceFailedUpdateStatus, AsyncRequestStage.TimeoutCallbackCalled,
  AsyncRequestStage.TimeoutCallbackFinished, AsyncRequestStage.CancelFailedToSetStatus, AsyncRequestStage.GetRequestStreamCallbackStartingTimeoutCallback, AsyncRequestStage.StartTimeoutCheckRegisteringTimeoutCallback,
  AsyncRequestStage.DoGetAsyncRegisteringTimeoutCallback, AsyncRequestStage.DoPostAsyncRegisteringTimeoutCallback, AsyncRequestStage.GetResponseCallBackRegisteringTimeout, AsyncRequestStage.ReadCallbackRegisteringTimeoutCallback,
  AsyncRequestStage.GetResponseCallBackEndGetResponseCalled, AsyncRequestStage.GetResponseCallBackGetResponseStreamCalled, AsyncRequestStage.GetResponseCallBackFailedToUpdateStatus, AsyncRequestStage.ReadCallbackFailedToSetStatus,
  AsyncRequestStage.FinalReadCallbackFailedToSetStatus, AsyncRequestStage.AsyncResultFinishedSynchronously, AsyncRequestStage.TimeoutListNodeAlreadyRemoved, AsyncRequestStage.TimeoutListRemoving,
  AsyncRequestStage.TimeoutListRemoved, AsyncRequestStage.TimeoutListAdded, AsyncRequestStage.TimeoutListProcessWebResponse, AsyncRequestStage.FaultBecauseOfTooBigResponse
}
 
enum  HttpRequestQueueResultCode {
  HttpRequestQueueResultCode.Success, HttpRequestQueueResultCode.RequestTimeout, HttpRequestQueueResultCode.QueueTimeout, HttpRequestQueueResultCode.Offline,
  HttpRequestQueueResultCode.QueueFull, HttpRequestQueueResultCode.Error
}
 
enum  HttpRequestQueueState { HttpRequestQueueState.Running, HttpRequestQueueState.Connecting, HttpRequestQueueState.Reconnecting, HttpRequestQueueState.Offline }
 

Functions

delegate void HttpRequestQueueCallback (HttpRequestQueueResultCode result, AsyncHttpRequest request, object userState)
 

Enumeration Type Documentation

◆ AsyncHttpRequestStatus

Enumerator
Created 

The request has been initialized but has not yet been scheduled.

Running 

The request is running but has not yet completed.

Completed 

The request completed successfully.

Faulted 

The request completed due to an unhandled exception.

Canceled 

The request has been canceled.

◆ AsyncRequestStage

Enumerator
Creted 
GetAsyncCalled 
DoGetAsyncScheduled 
CancelCalled 
CancelFinished 
PostAsyncCalled 
DoPostAsyncScheduled 
CleanupCalled 
CleanupFinished 
DoGetAsyncCalled 
CallingBeginGetResponse 
DoPostAsyncCalled 
CallingBeginGetRequestStream 
EndRequestCalled 
UserCallbackCalled 
GetRequestStreamCallbackCalled 
GetRequestStreamCallbackFailedToUpdateStatus 
WebRequestEndGetRequestStream 
GetResponseCallBackCalled 
GetResponseCallBackFailedToGetResponse 
WebResponseStreamBeginReadCalled 
ReadCallbackCalled 
WebResponseStreamEndReadCalled 
WebResponseStreamReadingFinished 
ReadCallbackWebResponseStreamBeginReadCalled 
SetExceptionCalled 
SetExceptionOnceCalled 
SetTimeoutExceptionCalled 
TimeoutCallbackWithTimeoutIsCalled 
TimeoutCallbackFailedUpdateStatus 
SetExceptionOnceFailedUpdateStatus 
TimeoutCallbackCalled 
TimeoutCallbackFinished 
CancelFailedToSetStatus 
GetRequestStreamCallbackStartingTimeoutCallback 
StartTimeoutCheckRegisteringTimeoutCallback 
DoGetAsyncRegisteringTimeoutCallback 
DoPostAsyncRegisteringTimeoutCallback 
GetResponseCallBackRegisteringTimeout 
ReadCallbackRegisteringTimeoutCallback 
GetResponseCallBackEndGetResponseCalled 
GetResponseCallBackGetResponseStreamCalled 
GetResponseCallBackFailedToUpdateStatus 
ReadCallbackFailedToSetStatus 
FinalReadCallbackFailedToSetStatus 
AsyncResultFinishedSynchronously 
TimeoutListNodeAlreadyRemoved 
TimeoutListRemoving 
TimeoutListRemoved 
TimeoutListAdded 
TimeoutListProcessWebResponse 
FaultBecauseOfTooBigResponse 

◆ HttpRequestQueueResultCode

Enumerator
Success 
RequestTimeout 
QueueTimeout 
Offline 
QueueFull 
Error 

◆ HttpRequestQueueState

Enumerator
Running 
Connecting 
Reconnecting 
Offline 

Function Documentation

◆ HttpRequestQueueCallback()

delegate void Photon.SocketServer.Net.HttpRequestQueueCallback ( HttpRequestQueueResultCode  result,
AsyncHttpRequest  request,
object  userState 
)