public SnapshotLiveDataStreamInvalidater(ManageableMarketDataSnapshot snapshot, RemoteEngineContext remoteEngineContext) { _snapshot = snapshot; _remoteEngineContext = remoteEngineContext; snapshot.PropertyChanged += PropertyChanged; //TODO: weak ref _constructedEvent.Set(); }
public SnapshotDataStream(ViewDefinition viewDefinition, RemoteEngineContext remoteEngineContext, UniqueId snapshotId, Dictionary <YieldCurveKey, Dictionary <string, ValueRequirement> > specs) : base(remoteEngineContext) { ArgumentChecker.NotNull(viewDefinition, "viewDefinition"); ArgumentChecker.NotNull(snapshotId, "snapshotId"); _viewDefinition = viewDefinition; _snapshotId = snapshotId; _specs = specs; }
public SnapshotDataStreamInvalidater(SnapshotLiveDataStreamInvalidater liveStream, RemoteEngineContext remoteEngineContext, UniqueId snapshotId) { _liveStream = liveStream; _remoteEngineContext = remoteEngineContext; _snapshotId = snapshotId; _financialClient = remoteEngineContext.CreateFinancialClient(); _liveStream.GraphChanged += OnGraphChanged; _constructedEvent.Set(); }
public ViewDefinition CreateViewDefinition(RemoteEngineContext context, ValueRequirement valueRequirement) { var viewDefinition = new ViewDefinition(TestUtils.GetUniqueName()); viewDefinition.CalculationConfigurationsByName.Add("Default", new ViewCalculationConfiguration("Default", new List <ValueRequirement> { valueRequirement }, new Dictionary <string, HashSet <Tuple <string, ValueProperties> > >())); using (var remoteClient = context.CreateFinancialClient()) { var uid = remoteClient.ViewDefinitionRepository.AddViewDefinition(new AddViewDefinitionRequest(viewDefinition)); viewDefinition.UniqueID = uid; } _createdViews.Enqueue(Tuple.Create(context, viewDefinition.Name)); return(viewDefinition); }
private volatile Exception _error; //TODO: combine multiple exceptions protected LastResultViewClient(RemoteEngineContext remoteEngineContext) { _remoteEngineContext = remoteEngineContext; _prepared = new Task(Prepare); _prepared.Start(); }
public LiveDataStream(string basisViewName, RemoteEngineContext remoteEngineContext) : base(remoteEngineContext) { _basisViewName = basisViewName; }