Class TokenRequiredEventArgs
Informs the application that the service requires an updated access token or authentication token.
class Microsoft::Azure::SpatialAnchors::TokenRequiredEventArgs final : public std::enable_shared_from_this<Microsoft::Azure::SpatialAnchors::TokenRequiredEventArgs>
Methods
GetDeferral
Returns a deferral object that can be used to provide an updated access token or authentication token from another asynchronous operation.
auto GetDeferral() -> std::shared_ptr<Microsoft::Azure::SpatialAnchors::CloudSpatialAnchorSessionDeferral>;
Returns
Type | Description |
---|---|
CloudSpatialAnchorSessionDeferral | A new deferral instance that should be completed when a new service access token or authentication token is set in the session configuration. |
Properties
AccessToken
The access token to be used by the operation that requires it.
auto AccessToken() const -> std::string;
auto AccessToken(std::string const& value) -> void;
AuthenticationToken
The authentication token to be used by the operation that requires it.
auto AuthenticationToken() const -> std::string;
auto AuthenticationToken(std::string const& value) -> void;