Help with migration to new domains.
A letter came, I did not understand what to change.
using System; using System.Linq; using System.Diagnostics; using System.IO; using ThomsonReuters.Dss.Api.StandardExtractions; using ThomsonReuters.Dss.Api; using ThomsonReuters.Dss.Api.Content; using ThomsonReuters.Dss.Api.Extractions; using ThomsonReuters.Dss.Api.Extractions.ExtractionRequests; using ThomsonReuters.Dss.Api.Extractions.ReportExtractions; using ThomsonReuters.Dss.Api.Extractions.ReportTemplates; using ThomsonReuters.Dss.Api.Extractions.Schedules; using ThomsonReuters.Dss.Api.Extractions.SubjectLists; using ThomsonReuters.Dss.Api.Search; using ThomsonReuters.Dss.Core.RestApi; using System.Text; using ICSharpCode.SharpZipLib.GZip; using System.Text.RegularExpressions; namespace RefinitivHistoryTesting { class Program { public static string getExtractionID(string note) { string pattern = @"Extraction ID: ([0-9]+)"; string extractionID = ""; Regex rgx = new Regex(pattern); Match match = rgx.Match(note); if (match.Success) { string[] words = match.Value.Split(':'); extractionID = words[1].ToString().Trim(); Console.WriteLine("ExtractionID: {0}", extractionID); } return extractionID; } static void Main(string[] args) { //----------------------------------------------------------------- //Connect and authenticate to the DSS server: //----------------------------------------------------------------- Uri dssUri = new Uri("https://hosted.datascopeapi.reuters.com/RestApi/v1/"); string dssUserName = "****"; string dssUserPassword = "****"; //var out_dir = @".\Storage\"; var SearchContext = new SearchContext(dssUri, dssUserName, dssUserPassword); var ExtractionsContext = new ExtractionsContext(dssUri, dssUserName, dssUserPassword); ExtractionsContext.Options.AutomaticDecompression = false; try { ExtractionsContext.DefaultRequestHeaders.Add("x -direct-download", "true"); } catch (Exception) { } var availableMbPFields = ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.TickHistoryRaw); var availableTnSFields = ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.TickHistoryTimeAndSales);