NuGet, ошибка при вызове refresh для FinamHistorySource.
Если использовать библиотеки через NuGet то возникают следующие ошибки, если использовать библиотеки с GitHab проблем нет.
System.TypeInitializationException occurred
HResult=0x80131534
Message=The type initializer for '#=qyZ0TVlBnV4j95ut4Dwfq2wd44mfa0hYxetytapn7X2sPvAB9ReA0Z5ix7w_iKUVRt_fpYMQ3rVLFv2Gc8MtVpw==' threw an exception.
Source=<Cannot evaluate the exception source>
StackTrace:
at #=qyZ0TVlBnV4j95ut4Dwfq2wd44mfa0hYxetytapn7X2sPvAB9ReA0Z5ix7w_iKUVRt_fpYMQ3rVLFv2Gc8MtVpw==.#=qWNdyRxA16pARIFAYdg3cxw==(String #=qE_ZHp4dCRLx2aco30U$BCg==)
at StockSharp.Algo.History.Russian.MoexDownloader.GetSecurities(String code, IExchangeInfoProvider exchangeInfoProvider, Boolean isDownload)
at StockSharp.Algo.History.Russian.Finam.FinamHistorySource.Refresh(ISecurityStorage securityStorage, Security criteria, Action`1 newSecurity, Func`1 isCancelled)
at FinamLoad.MainWindow..ctor() in C:\Users\......\Documents\Visual Studio 2017\Projects\WpfApp2\FinamLoad\MainWindow.xaml.cs:line 50
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'System.IO.Compression, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
Inner Exception 2:
FileNotFoundException: Could not load file or assembly 'System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
Code
var _finamHistorySource = new FinamHistorySource(new InMemoryNativeIdStorage(), new InMemoryExchangeInfoProvider());
_finamHistorySource.Refresh(new FinamSecurityStorage(security), security, s => { }, () => false);// здесь ошибка