Kanzi 3.9.10
ResourceManager.ProtocolHandler.Result Class Reference

Holds the result of ProtocolHandler handle callback. More...

Inheritance diagram for ResourceManager.ProtocolHandler.Result:
[legend]

Public Member Functions

 Result ()
 Constructor in case of failure.
 
 Result (LoadTask loadTask)
 Constructor in case of success.
 
 Result (ObjectRef< TResultType > resource)
 Constructor in case of success.
 
void close ()
 Closes the object, and releases the resources.
 

Detailed Description

Holds the result of ProtocolHandler handle callback.

The result can be either a synchronously loaded resource, or a load task to asynchronously load the resource.

Constructor & Destructor Documentation

◆ Result() [1/2]

Result ( ObjectRef< TResultType > resource)

Constructor in case of success.

Parameters
resourceThe created resource.

◆ Result() [2/2]

Result ( LoadTask loadTask)

Constructor in case of success.

Parameters
loadTaskThe created loadTask.