using System;
namespace RestEase
{
///
/// Encapsulates extra information provided to
///
///
/// This is broken out as a separate structure so that extra properties can be added without breaking backwards compatibility
///
public struct RequestBodySerializerInfo
{
///
/// Gets information about the request
///
public IRequestInfo RequestInfo { get; }
///
/// Gets the format provider. If this is null, the default will be used.
/// Specified by the user on
///
public IFormatProvider? FormatProvider { get; }
///
/// Initialises a new instance of the structure
///
/// Information about the request
/// Format provider to use
public RequestBodySerializerInfo(IRequestInfo requestInfo, IFormatProvider? formatProvider)
{
this.RequestInfo = requestInfo;
this.FormatProvider = formatProvider;
}
}
}