C# Class EdjCase.JsonRpc.Router.Defaults.DefaultRpcParser

Default Rpc parser that uses Newtonsoft.Json
Inheritance: IRpcParser
Afficher le fichier Open project: edjCase/JsonRpc Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Method Details

DefaultRpcParser() public méthode

public DefaultRpcParser ( ILogger logger ) : System
logger ILogger Optional logger for logging Rpc parsing
Résultat System

MatchesRpcRoute() public méthode

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
Résultat bool

ParseRequests() public méthode

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
Résultat List