|
|
azure-core
|
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. | |
| 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. | |
| Azure::Core::Http::RawResponse const & | GetRawResponse () const |
| Gets the raw HTTP response. | |
| 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. | |
| bool | HasValue () const noexcept |
| Checks if the long-running operation completed successfully and has produced a final result. | |
| Http::RawResponse const & | Poll () |
| Gets updated status of the long-running operation. | |
| Http::RawResponse const & | Poll (Context const &context) |
| Gets updated status of the long-running operation. | |
| Response< T > | PollUntilDone (std::chrono::milliseconds period) |
| Periodically polls till the long-running operation completes. | |
| Response< T > | PollUntilDone (std::chrono::milliseconds period, Context &context) |
| Periodically polls till the long-running operation completes;. | |
Protected Member Functions | |
| Operation ()=default | |
Constructs a default instance of Operation. | |
| Operation (Operation &&other) | |
Constructs an instance of Operation by moving in another instance. | |
| Operation (Operation const &other) | |
Constructs an instance of Operation by copying another instance. | |
| Operation & | operator= (Operation &&other) |
Assigns an instance of Operation by moving in another instance. | |
| Operation & | operator= (Operation const &other) |
Assigns another Operation instance by copying. | |
Protected Attributes | |
| std::unique_ptr< Azure::Core::Http::RawResponse > | m_rawResponse = nullptr |
| the underlying raw response for this operation. | |
| OperationStatus | m_status = OperationStatus::NotStarted |
| the current status of the operation. | |
| T | The long-running operation final result type. |
|
protecteddefault |
|
inlineprotected |
| other | An Operation instance to move in. |
|
inlineprotected |
| other | An Operation instance to copy. |
|
inlinevirtual |
|
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. |
|
inlinenoexcept |
|
pure virtual |