private void DeletePortfolioButtonClicked(object sender, RoutedEventArgs e)
        {
//             QuickArbitrage.Connection.TransferTest.Customer customer =
//                 QuickArbitrage.Connection.TransferTest.StreamFileTest.ReadCustomer("e:\\cpp.bin");
            IQuoteClient quoteClient = QuickArbitrage.Connection.ClientFactory.Instance.GetQuoteClient();

            quoteClient.OnQuoteReceived += new EventHandler <OnQuoteReceivedEventArgs>(quoteClient_OnQuoteReceived);
            quoteClient.Subscribe(new string[] { "cu1206", "cu1207" });
        }
Example #2
0
        public IndexModel(IQuoteClient client, IConfiguration config)
        {
            Client  = client;
            _config = config;

            var envVersion = Environment.GetEnvironmentVariable("VERSION");

            if (envVersion != null)
            {
                Version = new Version(envVersion.ToString());
            }
            else
            {
                Version = new Version("0.0.0");
            }

            BackgroundColor = Environment.GetEnvironmentVariable("BACKGROUND_COLOR");
        }
Example #3
0
 public SeasonMapCommand(IDbContextScopeFactory dbContextScopeFactory, ISeasonDBRepository repository, IQuoteClient quoteClient) : base(dbContextScopeFactory, repository)
 {
     this.QuoteClient = quoteClient;
 }
Example #4
0
 public HomeController(IQuoteClient client, IConfiguration config)
 {
     _client = client;
     _config = config;
 }
Example #5
0
 public QuoteController(IQuoteClient quoteClient, IQuoteUpsertCommand upsertCommand)
 {
     this.QuoteClient        = quoteClient;
     this.QuoteUpsertCommand = upsertCommand;
 }
Example #6
0
 public QuoteUpsertCommand(IDbContextScopeFactory dbContextScopeFactory, IQuoteDBRepository repository, IQuoteClient quoteClient) : base(dbContextScopeFactory, repository)
 {
     this.QuoteClient = quoteClient;
 }