3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/platform/Result.h"
11namespace Json {
class Value; }
20class JsonRpcProvider :
public ::std::enable_shared_from_this<::JsonRpc::JsonRpcProvider> {
28 struct JsonRpcPendingResult {
38 JsonRpcPendingResult& operator=(JsonRpcPendingResult
const&);
39 JsonRpcPendingResult(JsonRpcPendingResult
const&);
40 JsonRpcPendingResult();
73 JsonRpcProvider& operator=(JsonRpcProvider
const&);
74 JsonRpcProvider(JsonRpcProvider
const&);
81 ::std::shared_ptr<::JsonRpc::ITransport> transport,
82 ::std::shared_ptr<::JsonRpc::IObserver> observer,
83 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
91 MCNAPI ::std::unique_ptr<::std::string, ::std::function<void(::std::string*)>>
99 ::std::shared_ptr<::JsonRpc::ITransport> transport,
100 ::std::shared_ptr<::JsonRpc::IObserver> observer,
101 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
Definition IJsonRpcComponent.h:10
Definition IObserver.h:13
Definition IResultHandler.h:17
Definition ITransport.h:11
Definition JsonRpcError.h:7
MCAPI void handleJsonRpcResult(::std::string const &id, ::Bedrock::Result<::Json::Value, ::JsonRpc::JsonRpcError > &&result)
MCAPI JsonRpcProvider(::std::shared_ptr<::JsonRpc::ITransport > transport, ::std::shared_ptr<::JsonRpc::IObserver > observer, ::std::vector<::std::shared_ptr<::IJsonRpcComponent > > components)
MCAPI void _expirePendingResult(::std::string const &id)
MCAPI void * $ctor(::std::shared_ptr<::JsonRpc::ITransport > transport, ::std::shared_ptr<::JsonRpc::IObserver > observer, ::std::vector<::std::shared_ptr<::IJsonRpcComponent > > components)
MCAPI ::std::unique_ptr<::std::string, ::std::function< void(::std::string *)> > registerJsonRpcMethod(::std::string method, ::std::unique_ptr<::JsonRpc::IResultHandler > handler)
Definition JsonRpcProvider.h:28
MCAPI ~JsonRpcPendingResult()