|
Methods starting long-running operations return Operation<T> types. More...
#include <operation.hpp>
Public Member Functions | |
virtual | ~Operation () |
Destructs the Operation . | |
virtual T | Value () const =0 |
Final result of the long-running operation. More... | |
virtual std::string | GetResumeToken () const =0 |
Gets a token representing the operation that can be used to poll for the status of the long-running operation. More... | |
Azure::Core::Http::RawResponse const & | GetRawResponse () const |
Gets the raw HTTP response. More... | |
OperationStatus const & | Status () const noexcept |
Gets the current Azure::Core::OperationStatus of the long-running operation. | |
bool | IsDone () const noexcept |
Checks if the long-running operation is completed. More... | |
bool | HasValue () const noexcept |
Checks if the long-running operation completed successfully and has produced a final result. More... | |
Http::RawResponse const & | Poll () |
Gets updated status of the long-running operation. More... | |
Http::RawResponse const & | Poll (Context const &context) |
Gets updated status of the long-running operation. More... | |
Response< T > | PollUntilDone (std::chrono::milliseconds period) |
Periodically polls till the long-running operation completes. More... | |
Response< T > | PollUntilDone (std::chrono::milliseconds period, Context &context) |
Periodically polls till the long-running operation completes;. More... | |
Protected Member Functions | |
Operation ()=default | |
Constructs a default instance of Operation . | |
Operation (Operation &&other) | |
Constructs an instance of Operation by moving in another instance. More... | |
Operation (Operation const &other) | |
Constructs an instance of Operation by copying another instance. More... | |
Operation & | operator= (Operation &&other) |
Assigns an instance of Operation by moving in another instance. More... | |
Operation & | operator= (Operation const &other) |
Assigns another Operation instance by copying. More... | |
Protected Attributes | |
std::unique_ptr< Azure::Core::Http::RawResponse > | m_rawResponse = nullptr |
OperationStatus | m_status = OperationStatus::NotStarted |
T | The long-running operation final result type. |
|
inlineprotected |
other | An Operation instance to move in. |
|
inlineprotected |
other | An Operation instance to copy. |
|
inline |
|
pure virtual |
|
inlinenoexcept |
Value()
.true
if the long-running operation completed successfully; otherwise, false
.
|
inlinenoexcept |
true
if the long-running operation is done; otherwise, false
.
|
inlineprotected |
other | An Operation instance to move in. |
|
inlineprotected |
other | An Operation instance to copy. |
|
inline |
|
inline |
context | A context to control the request lifetime. |
|
inline |
period | Time in milliseconds to wait between polls. |
|
inline |
period | Time in milliseconds to wait between polls. |
context | A context to control the request lifetime. |
|
pure virtual |