Exemplo n.º 1
0
 public ViewDefinition(string name, ResultModelDefinition resultModelDefinition = null, UniqueId portfolioIdentifier = null, UserPrincipal user = null, Currency defaultCurrency = null, TimeSpan? minDeltaCalcPeriod = null, TimeSpan? maxDeltaCalcPeriod = null, TimeSpan? minFullCalcPeriod = null, TimeSpan? maxFullCalcPeriod = null, Dictionary<string, ViewCalculationConfiguration> calculationConfigurationsByName = null, UniqueId uniqueID = null)
 {
     _name = name;
     _uniqueID = uniqueID;
     _portfolioIdentifier = portfolioIdentifier;
     _user = user ?? UserPrincipal.DefaultUser;
     _resultModelDefinition = resultModelDefinition ?? new ResultModelDefinition();
     _defaultCurrency = defaultCurrency;
     _minDeltaCalcPeriod = minDeltaCalcPeriod;
     _maxDeltaCalcPeriod = maxDeltaCalcPeriod;
     _minFullCalcPeriod = minFullCalcPeriod;
     _maxFullCalcPeriod = maxFullCalcPeriod;
     _calculationConfigurationsByName = calculationConfigurationsByName ?? new Dictionary<string, ViewCalculationConfiguration>();
 }
Exemplo n.º 2
0
        public RemoteViewClient CreateClient(UserPrincipal userPrincipal)
        {
            var clientUri = _rest.Resolve("clients").Create(userPrincipal);

            return new RemoteViewClient(_fudgeContext, clientUri, _mqTemplate, this);
        }