public BatchJsonRpcResult(IJsonRpcCallContext context, HeaderJsonRpcSerializer headerJsonRpcSerializer, IJsonRpcSerializer serializer)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     if (context.SingleResponse != null)
     {
         throw new ArgumentOutOfRangeException(nameof(context), "Expected batch response");
     }
     this.responses = CreateDictionary(context.BatchResponse);
     this.headerJsonRpcSerializer = headerJsonRpcSerializer;
     this.serializer = serializer;
 }
Beispiel #2
0
 public JsonRpcException(string message, IJsonRpcCallContext context) : base(message)
 {
     Context = context;
 }