public static TotalTicker Instance()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new TotalTicker();
            }

            return(uniqueInstance);
        }
Esempio n. 2
0
 public AProvider(string fileConfigJson = "mappings.json")
 {
     try
     {
         totalTicker = TotalTicker.Instance();
         var mappedSymbols = ConfigurationManager.GetJson(fileConfigJson);
         initializeMapping(mappedSymbols);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.ReadKey();
     }
 }