Esempio n. 1
0
 static void Main(string[] _)
 {
     try
     {
         // Create a session into the platform...
         using (ISession session = Configuration.Sessions.GetSession())
         {
             // Open the session
             if (session.Open() == Session.State.Opened)
             {
                 // List all organizations that have ESG coverage
                 Common.DisplayTable(Universe.Definition().GetData(), "ESG Universe");
             }
         }
     }
     catch (Exception e)
     {
         Console.WriteLine($"\n**************\nFailed to execute: {e.Message}\n{e.InnerException}\n***************");
     }
 }
Esempio n. 2
0
        static void Main(string[] _)
        {
            try
            {
                // Create a session into the platform...
                using (ISession session = Sessions.GetSession())
                {
                    // Open the session
                    if (session.Open() == Session.State.Opened)
                    {
                        Console.WriteLine("\nRequesting for the entire ESG Universe...");

                        // List all organizations that have ESG coverage
                        var response = Universe.Definition().GetData();
                        Common.DisplayTable("ESG Universe", response, 0, 25);
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine($"\n**************\nFailed to execute: {e.Message}\n{e.InnerException}\n***************");
            }
        }