IRpcParser.cs 522 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using Edjcase.JsonRpc.Router;
  4. using EdjCase.JsonRpc.Core;
  5. using Newtonsoft.Json;
  6. namespace EdjCase.JsonRpc.Router.Abstractions
  7. {
  8. public interface IRpcParser
  9. {
  10. /// <summary>
  11. /// Parses all the requests from the json in the request
  12. /// </summary>
  13. /// <param name="jsonString">Json from the http request</param>
  14. /// <returns>Result of the parsing. Includes all the parsed requests and any errors</returns>
  15. ParsingResult ParseRequests(string jsonString);
  16. }
  17. }