C# Класс EdjCase.JsonRpc.Router.Defaults.DefaultRpcParser

Default Rpc parser that uses Newtonsoft.Json
Наследование: IRpcParser
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
DefaultRpcParser ( ILogger logger ) : System

MatchesRpcRoute ( IRpcRouteProvider routeProvider, string requestUrl, RpcRoute &route ) : bool

Indicates if the incoming request matches any predefined routes

ParseRequests ( string jsonString, bool &isBulkRequest, JsonSerializerSettings jsonSerializerSettings = null ) : List

Parses all the requests from the json in the request

Описание методов

DefaultRpcParser() публичный Метод

public DefaultRpcParser ( ILogger logger ) : System
logger ILogger Optional logger for logging Rpc parsing
Результат System

MatchesRpcRoute() публичный Метод

Indicates if the incoming request matches any predefined routes
public MatchesRpcRoute ( IRpcRouteProvider routeProvider, string requestUrl, RpcRoute &route ) : bool
routeProvider IRpcRouteProvider Provider that allows the retrieval of all configured routes
requestUrl string The current request url
route RpcRoute The matching route corresponding to the request url if found, otherwise it is null
Результат bool

ParseRequests() публичный Метод

Parses all the requests from the json in the request
public ParseRequests ( string jsonString, bool &isBulkRequest, JsonSerializerSettings jsonSerializerSettings = null ) : List
jsonString string Json from the http request
isBulkRequest bool If true, the request is a bulk request (even if there is only one)
jsonSerializerSettings Newtonsoft.Json.JsonSerializerSettings (Optional)Json serialization settings that will be used in serialization and deserialization for rpc requests
Результат List