3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/platform/Result.h"
12namespace Json {
class Value; }
19class JsonRpcProvider :
public ::std::enable_shared_from_this<::JsonRpc::JsonRpcProvider> {
27 struct JsonRpcPendingResult {
37 JsonRpcPendingResult& operator=(JsonRpcPendingResult
const&);
38 JsonRpcPendingResult(JsonRpcPendingResult
const&);
39 JsonRpcPendingResult();
71 JsonRpcProvider& operator=(JsonRpcProvider
const&);
72 JsonRpcProvider(JsonRpcProvider
const&);
79 ::std::shared_ptr<::ISignalingJsonRpcInterop> signalingServiceInterop,
80 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
90 MCNAPI
void onMessage(::std::string_view incomingMessage);
92 MCNAPI ::std::unique_ptr<::std::string, ::std::function<void(::std::string*)>>
102 ::std::shared_ptr<::ISignalingJsonRpcInterop> signalingServiceInterop,
103 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
Definition IJsonRpcComponent.h:10
Definition ISignalingJsonRpcInterop.h:20
Definition IResultHandler.h:17
Definition JsonRpcError.h:12
MCAPI void handleJsonRpcResult(::std::string const &id, ::Bedrock::Result<::Json::Value, ::JsonRpc::JsonRpcError > &&result)
MCAPI void _expirePendingResult(::std::string const &id)
MCAPI void _dispatchJsonRpc(::std::string const &method, ::Json::Value const ¶ms, ::std::string const &id)
MCAPI void * $ctor(::std::shared_ptr<::ISignalingJsonRpcInterop > signalingServiceInterop, ::std::vector<::std::shared_ptr<::IJsonRpcComponent > > components)
MCAPI JsonRpcProvider(::std::shared_ptr<::ISignalingJsonRpcInterop > signalingServiceInterop, ::std::vector<::std::shared_ptr<::IJsonRpcComponent > > components)
MCAPI void onMessage(::std::string_view incomingMessage)
MCAPI ::std::unique_ptr<::std::string, ::std::function< void(::std::string *)> > registerJsonRpcMethod(::std::string method, ::std::unique_ptr<::JsonRpc::IResultHandler > handler)
Definition JsonRpcProvider.h:27
MCAPI ~JsonRpcPendingResult()