private static string EncodeDate(DateTimeOffset currentDate)
 {
     return((currentDate != default(DateTimeOffset)) ? UriEncoding.ToString(currentDate) : "null");
 }
Exemplo n.º 2
0
        public InterpolatedYieldCurveSpecification BuildCurve(DateTimeOffset curveDate, YieldCurveDefinition curveDefinition)
        {
            RestTarget target = _rest.Resolve("builder").Resolve(UriEncoding.ToString(curveDate));

            return(target.Post <InterpolatedYieldCurveSpecification>(curveDefinition));
        }