C# 클래스 EdjCase.JsonRpc.Router.Defaults.DefaultRpcParser

Default Rpc parser that uses Newtonsoft.Json
상속: IRpcParser
파일 보기 프로젝트 열기: edjCase/JsonRpc 1 사용 예제들

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