private void Initialize() { string appDataFolder = Factory.Settings["AppDataFolder"]; if (appDataFolder == null) { throw new ApplicationException("Sorry, AppDataFolder must be set in the app.config file."); } string configFile = appDataFolder + @"/Providers/eSignalProviderService.config"; LoadProperties(configFile); esignal = new HooksClass(); esignal.OnQuoteChanged += new _IHooksEvents_OnQuoteChangedEventHandler(esignal_OnQuoteChanged); //attempt to login to esignal try { string pw = GetProperty("esignalaccount"); esignal.SetApplication(pw); } catch (Exception e) { //MessageBox.Show("Not Entitled! Check User Name.") Console.WriteLine(e.ToString()); } //just to be sure its clean esignal.ClearSymbolCache(); Thread.Sleep(5000); }
public void Stop(Receiver receiver) { esignal.ClearSymbolCache(); }