3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/platform/Result.h"
12namespace 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();
72 JsonRpcProvider& operator=(JsonRpcProvider
const&);
73 JsonRpcProvider(JsonRpcProvider
const&);
80 ::std::shared_ptr<::ISignalingJsonRpcInterop> signalingServiceInterop,
81 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
94 MCNAPI
void initialize();
97 MCNAPI
void onMessage(::std::string_view incomingMessage);
99 MCNAPI ::std::unique_ptr<::std::string, ::std::function<void(::std::string*)>>
109 ::std::shared_ptr<::ISignalingJsonRpcInterop> signalingServiceInterop,
110 ::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::cereal::ReflectionCtx & getReflectionContext()
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:28
MCAPI ~JsonRpcPendingResult()
Definition ReflectionCtx.h:11