Exemple #1
0
        private TickerStorage()
        {
            quotesFolder = ExecutablePath.ExecPath + "\\quotes";
            try
            {
                quoteStorage = Contract.Util.Proxy.QuoteStorage.Instance.proxy;
            }
            catch
            {
                Logger.Error("Связь с сервером (IQuoteStorageBinding) не установлена");
                return;
            }

            serverQuoteHistory = new ServerQuoteHistory(quoteStorage);
        }
 public DailyQuoteStorage()
 {
     try
     {
         quoteStorage = TradeSharp.Contract.Util.Proxy.QuoteStorage.Instance.proxy;
     }
     catch (Exception ex)
     {
         Logger.Error("Связь с сервером (IQuoteStorageBinding) не установлена", ex);
         throw;
     }
     quoteHistoryOnServer = new ServerQuoteHistory(quoteStorage);
     try
     {
         if (!Directory.Exists(quoteFolder))
             Directory.CreateDirectory(quoteFolder);
     }
     catch (Exception ex)
     {
         Logger.Error("Ошибка создания каталога " + quoteFolder, ex);
         throw;
     }
 }