C# Class Amazon.Runtime.Internal.UnityRequestQueue

A singleton which stores the list of pending web requests and pending callbacks. A singleton is used to maintain this state globally across multiple Unity scenes.
显示文件 Open project: aws/aws-sdk-net

Public Methods

Method Description
DequeueCallback ( ) : RuntimeAsyncResult

Dequeues an callback from the queue of pending callbacks that need to be invoked.

DequeueMainThreadOperation ( ) : System.Action
DequeueRequest ( ) : IUnityHttpRequest

Dequeues a request from the queue of pending requests.

EnqueueCallback ( RuntimeAsyncResult asyncResult ) : void

Enqueues a callback method that should be invoked on the main thread by the UnityMainThreadDispatcher.

EnqueueRequest ( IUnityHttpRequest request ) : void

Enqueues a request to be processed by the UnityMainThreadDispatcher. Unity

ExecuteOnMainThread ( System.Action action ) : void

Enqueue an anonymous method on main thread

Private Methods

Method Description
UnityRequestQueue ( ) : System

The private contructor for the singleton class.

Method Details

DequeueCallback() public method

Dequeues an callback from the queue of pending callbacks that need to be invoked.
public DequeueCallback ( ) : RuntimeAsyncResult
return RuntimeAsyncResult

DequeueMainThreadOperation() public method

public DequeueMainThreadOperation ( ) : System.Action
return System.Action

DequeueRequest() public method

Dequeues a request from the queue of pending requests.
public DequeueRequest ( ) : IUnityHttpRequest
return IUnityHttpRequest

EnqueueCallback() public method

Enqueues a callback method that should be invoked on the main thread by the UnityMainThreadDispatcher.
public EnqueueCallback ( RuntimeAsyncResult asyncResult ) : void
asyncResult RuntimeAsyncResult Instance of RuntimeAsyncResult that contains /// all the information about the callback.
return void

EnqueueRequest() public method

Enqueues a request to be processed by the UnityMainThreadDispatcher. Unity
public EnqueueRequest ( IUnityHttpRequest request ) : void
request IUnityHttpRequest An instance of UnityWebRequest.
return void

ExecuteOnMainThread() public method

Enqueue an anonymous method on main thread
public ExecuteOnMainThread ( System.Action action ) : void
action System.Action
return void