Esempio n. 1
0
        public async Task <XmlDocument> DownloadMosPrime(DateTime date)
        {
            _logger.Info($"Загрузка мос прайм");
            var client = new SecInfoSoapClient(SecInfoSoapClient.EndpointConfiguration.SecInfoSoap);
            var temp   = await client.MosPrimeXMLAsync(date, date);

            var xmlDocument = new XmlDocument();

            xmlDocument.LoadXml($"<MosPrime><ValidDate>{date.ToString("yyyy-MM-dd")}</ValidDate>{temp.InnerXml}</MosPrime>");
            return(xmlDocument);
        }
Esempio n. 2
0
        public async Task <XmlDocument> DownloadG2(DateTime date)
        {
            _logger.Info($"Загрузка G2");
            var client = new SecInfoSoapClient(SecInfoSoapClient.EndpointConfiguration.SecInfoSoap);
            var temp   = await client.GCurveAsync(date);

            var xmlDocument = new XmlDocument();

            xmlDocument.LoadXml($"<G2><ValidDate>{date.ToString("yyyy-MM-dd")}</ValidDate>{temp}</G2>");
            return(xmlDocument);
        }