Пример #1
0
        public static TotalTicker Instance()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new TotalTicker();
            }

            return(uniqueInstance);
        }
Пример #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();
     }
 }