Пример #1
0
        public JsonResult InvokeDataTransfer(string [] curves)
        {
            CurvesData.ClearPrevData();
            CurvesData.UpdateHeaders(curves);

            string requestedCurves = string.Join(",", curves);

            handler.InvokeDataTransfferAsync(requestedCurves).Wait();
            dataSubscriber.SubscribeData();

            return(Json(true, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
 public void InvokeDataTransfferAsyncTest()
 {
     try
     {
         string curves = "A,B,C";
         appiHandler = new APIHandler();
         appiHandler.GetCurveHeadersAsync();
         var t = appiHandler.InvokeDataTransfferAsync(curves).Result;
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }