using System;
using Newtonsoft.Json;
using EdjCase.JsonRpc.Router.Abstractions;
namespace EdjCase.JsonRpc.Router
{
///
/// Configuration data for the Rpc server that is shared between all middlewares
///
public class RpcServerConfiguration
{
///
/// Json serialization settings that will be used in serialization and deserialization
/// for rpc requests
///
public JsonSerializerSettings JsonSerializerSettings { get; set; }
///
/// If true will show exception messages that the server rpc methods throw. Defaults to false
///
public bool ShowServerExceptions { get; set; }
///
/// If specified the router will throw an error if there is a batch request count
/// greater than the limit
///
public int? BatchRequestLimit { get; set; }
}
}