Exemple #1
0
        /// <summary>
        /// Requests Infrastructure for specified information
        /// </summary>
        /// <param name="arguments">Report arguments</param>
        public void RequestReport(Dictionary <TradeParameters, string> arguments)
        {
            try
            {
                //Request required information from DB
                IList <Trade> result = _tradeRepository.Filter(arguments);

                // Check if the received result value is not NULL
                if (result != null)
                {
                    // Create Profit and Loss object
                    ProfitLossStats profitLoss = new ProfitLossStats(result);

                    // Raise Event
                    DataReceived(profitLoss);
                }
            }
            catch (Exception exception)
            {
                Logger.Error(exception, _type.FullName, "RequestReport");
            }
        }