C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
UnityRequestQueue ( ) : System

The private contructor for the singleton class.

Описание методов

DequeueCallback() публичный Метод

Dequeues an callback from the queue of pending callbacks that need to be invoked.
public DequeueCallback ( ) : RuntimeAsyncResult
Результат RuntimeAsyncResult

DequeueMainThreadOperation() публичный Метод

public DequeueMainThreadOperation ( ) : System.Action
Результат System.Action

DequeueRequest() публичный Метод

Dequeues a request from the queue of pending requests.
public DequeueRequest ( ) : IUnityHttpRequest
Результат IUnityHttpRequest

EnqueueCallback() публичный Метод

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.
Результат void

EnqueueRequest() публичный Метод

Enqueues a request to be processed by the UnityMainThreadDispatcher. Unity
public EnqueueRequest ( IUnityHttpRequest request ) : void
request IUnityHttpRequest An instance of UnityWebRequest.
Результат void

ExecuteOnMainThread() публичный Метод

Enqueue an anonymous method on main thread
public ExecuteOnMainThread ( System.Action action ) : void
action System.Action
Результат void