3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/threading/Async.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
15namespace Bedrock::Http {
struct Url; }
26 struct BlockingInitRecursiveContext {
35 BlockingInitRecursiveContext& operator=(BlockingInitRecursiveContext
const&);
36 BlockingInitRecursiveContext(BlockingInitRecursiveContext
const&);
37 BlockingInitRecursiveContext();
60 MinecraftServiceKeyManager& operator=(MinecraftServiceKeyManager
const&);
61 MinecraftServiceKeyManager(MinecraftServiceKeyManager
const&);
62 MinecraftServiceKeyManager();
67 virtual ~MinecraftServiceKeyManager() ;
74 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
75 ::std::function<int64()> timeFn,
78 ::std::optional<::MinecraftServiceKeysMetadata>>(
::TaskGroup&, ::std::string
const&,
bool)> metadataFn,
80 ::std::unordered_map<::std::string, ::std::string>>>(
::TaskGroup&, ::std::string
const&,
bool)> keysFn
83 MCNAPI_S
void _blockingInitRecursive(
85 ::std::shared_ptr<::MinecraftServiceKeyManager::BlockingInitRecursiveContext>
context
88 MCNAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo>
_fullFetch(
bool highPriority);
90 MCNAPI
bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata>
const& metadata);
92 MCNAPI_S ::std::future<bool> blockingInit();
103 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
104 ::std::function<int64()> timeFn,
107 ::std::optional<::MinecraftServiceKeysMetadata>>(
::TaskGroup&, ::std::string
const&,
bool)> metadataFn,
109 ::std::unordered_map<::std::string, ::std::string>>>(
::TaskGroup&, ::std::string
const&,
bool)> keysFn
Definition EnableNonOwnerReferences.h:7
Definition IMinecraftServiceKeySource.h:14
MCAPI void * $ctor(::std::unique_ptr<::IMinecraftServiceKeySource > keySource, ::std::function< int64()> timeFn, ::std::function<::Bedrock::Threading::Async<::Bedrock::Http::Url >()> urlFn, ::std::function<::Bedrock::Threading::Async< ::std::optional<::MinecraftServiceKeysMetadata > >(::TaskGroup &, ::std::string const &, bool)> metadataFn, ::std::function<::Bedrock::Threading::Async<::std::optional< ::std::unordered_map<::std::string, ::std::string > > >(::TaskGroup &, ::std::string const &, bool)> keysFn)
MCAPI bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata > const &metadata)
MCAPI MinecraftServiceKeyManager(::std::unique_ptr<::IMinecraftServiceKeySource > keySource, ::std::function< int64()> timeFn, ::std::function<::Bedrock::Threading::Async<::Bedrock::Http::Url >()> urlFn, ::std::function<::Bedrock::Threading::Async< ::std::optional<::MinecraftServiceKeysMetadata > >(::TaskGroup &, ::std::string const &, bool)> metadataFn, ::std::function<::Bedrock::Threading::Async<::std::optional< ::std::unordered_map<::std::string, ::std::string > > >(::TaskGroup &, ::std::string const &, bool)> keysFn)
MCAPI::MinecraftServiceKeyInfo getKeyInfo() const
static MCAPI void ** $vftable()
MCAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo > _fullFetch(bool highPriority)
MCAPI::std::string getKeyFromKeyId(::std::string const &kid) const
Definition TaskGroup.h:53
Definition MinecraftServiceKeyInfo.h:5
Definition MinecraftServiceKeyManager.h:26