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; }
public JsonRpcException(string message, IJsonRpcCallContext context) : base(message) { Context = context; }