89 9 17 21

migration domain thomson reuters

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("");
            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;
                ExtractionsContext.DefaultRequestHeaders.Add("x -direct-download", "true");
            catch (Exception)
            { }

            var availableMbPFields = ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.TickHistoryRaw);
            var availableTnSFields = ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.TickHistoryTimeAndSales);

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

32.2k 40 11 19

Hello @s61670 ,

Please refer to Refinitiv Datascope Select API Migration Tutorial. As you are coding with .NET SDK, the relevant information is in section "Migrate .Net SDK code".

Hope this information helps

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.