Пример #1
0
        public IBudgetProjection GetBudgetProjection(string budgetId)
        {
            BudgetProjection blp = null;

            if (_budget.TryGetValue(budgetId, out blp) == false)
            {
                var linesStream = "stuff_of_" + budgetId;
                var b           = GetBudgetsList().GetBudgetById(new Domain.Budgets.BudgetId(budgetId));

                _budget[budgetId] = blp = new BudgetProjection(b, _endpoint, _credentials, _adapter, linesStream);
                blp.Start();
            }
            return(blp);
        }
Пример #2
0
        public IBudgetProjection GetBudgetProjection(string budgetId)
        {
            BudgetProjection blp = null;

            if (_budget.TryGetValue(budgetId, out blp) == false)
            {
                var linesStream = "stuff_of_" + budgetId;
                var b = GetBudgetsList().GetBudgetById(new Domain.Budgets.BudgetId(budgetId));

                _budget[budgetId] = blp = new BudgetProjection(b, _endpoint, _credentials, _adapter, linesStream);
                blp.Start();
            }
            return blp;
        }