10Duke Scale C++ Client
|
#include <BaseRequest.h>
High-level licensing client request.
Used internally to share functionality.
This request contains delegate to actual request, lease-cache, and optional OIDCSession.
On execution the request:
R | type of the result |
Public Member Functions | |
BaseRequest (const std::shared_ptr<::tenduke::se::APIRequest< R > > &request, const std::shared_ptr<::tenduke::se::licensing::MutableLeases > &leases, const std::shared_ptr<::tenduke::oidc::OIDCSession > &oidc=nullptr) | |
Constructs new instance. | |
virtual R | execute () |
Executes the request. | |
Protected Member Functions | |
virtual R | executeRequest () |
Executes the request. | |
virtual void | maintainLeases (const R &response) |
Performs lease-cache maintenance. | |
Protected Attributes | |
const std::shared_ptr<::tenduke::se::licensing::MutableLeases > | leases |
The lease cache. | |
|
inline |
Constructs new instance.
request | the wrapped request, which performs the actual API call |
leases | lease cache |
oidc | OIDC-session |
Executes the request.
|
inlineprotectedvirtual |
Executes the request.
|
inlineprotectedvirtual |
Performs lease-cache maintenance.
This is empty method for subclasses to implement.
response | - |
Reimplemented in tenduke::se::licensing::CheckoutRequest< R >, tenduke::se::licensing::HeartbeatRequest< R >, and tenduke::se::licensing::ReleaseRequest< R >.