uPano  v3.1
InfinityCode.uPano.Requests.Request< T > Class Template Reference

Base class of a request More...

Inheritance diagram for InfinityCode.uPano.Requests.Request< T >:
InfinityCode.uPano.Requests.StatusRequest< T >

Public Member Functions

virtual void Dispose ()
 Disposes a request More...
 

Public Attributes

Action< T > OnComplete
 Action that occurs when the request is completed More...
 
bool keepAlive = false
 Do not destroy the request after completion. If true, you must call Dispose yourself when you no longer need it to avoid memory leaks. More...
 

Properties

object? this[string key] [get, set]
 Gets and sets the user value to be stored in a request More...
 
Dictionary< string, object > customFields [get]
 Gets a dictionary of custom fields More...
 

Detailed Description

Base class of a request

Template Parameters
TType of a request
Type Constraints
T :Request<T> 

Member Function Documentation

◆ Dispose()

virtual void InfinityCode.uPano.Requests.Request< T >.Dispose ( )
virtual

Disposes a request

Member Data Documentation

◆ keepAlive

bool InfinityCode.uPano.Requests.Request< T >.keepAlive = false

Do not destroy the request after completion. If true, you must call Dispose yourself when you no longer need it to avoid memory leaks.

◆ OnComplete

Action<T> InfinityCode.uPano.Requests.Request< T >.OnComplete

Action that occurs when the request is completed

Property Documentation

◆ customFields

Dictionary<string, object> InfinityCode.uPano.Requests.Request< T >.customFields
get

Gets a dictionary of custom fields

◆ this[string key]

object? InfinityCode.uPano.Requests.Request< T >.this[string key]
getset

Gets and sets the user value to be stored in a request

Parameters
keyKey
Returns
Value