Abstract interface for responding to read resource requests. More...
Inherits IDisposable.
Public Member Functions | |
virtual IntPtr | GetBuffer (uint size) |
Request buffer for resource data. GetBuffer must be called only once. GetBuffer may be called in any thread. More... | |
virtual void | SignalSuccess () |
Report that the resource is read successfully. This should be executed in the thread that all Coherent UI methods are executed. After this method is called, any calls to any method of the instance are undefined behavior. More... | |
virtual void | SignalFailure () |
Report that resource reading has failed. This should be executed in the thread that all Coherent UI methods are executed. After this method is called, any calls to any method of the instance are undefined behavior. More... | |
virtual void | SetResponseHeader (string key, string value) |
Set a key-value pair in the response headers. More... | |
virtual void | SetStatus (int status) |
Set the status for the response. More... | |
Abstract interface for responding to read resource requests.
|
inlinevirtual |
Request buffer for resource data. GetBuffer must be called only once. GetBuffer may be called in any thread.
size | the size of the resource |
|
inlinevirtual |
Set a key-value pair in the response headers.
key | the key for the response header |
value | the value for the response header |
|
inlinevirtual |
Set the status for the response.
status | the response status |
|
inlinevirtual |