// [Obsolete("looks illogical, move IStatusReporter to Initialize() and use Assembler.InstanceInitialized instead of Assembler.Constructed")] // protected Assembler(IStatusReporter mainForm) : this() { // this.StatusReporter = mainForm; // Assembler.instance = this; // } public Assembler() { this.RepositoryCustomSymbolInfo = new RepositoryCustomSymbolInfo(); this.MarketInfoRepository = new RepositoryCustomMarketInfo(); this.RepositoryJsonDataSource = new RepositoryJsonDataSource(); this.RepositoryDllJsonStrategy = new RepositoryDllJsonStrategy(); this.RepositoryDllStaticProvider = new RepositoryDllStaticProvider(); this.RepositoryDllStreamingProvider = new RepositoryDllStreamingProvider(); this.RepositoryDllBrokerProvider = new RepositoryDllBrokerProvider(); this.RepositoryDllReporters = new RepositoryDllReporters(); this.WorkspacesRepository = new RepositoryFoldersNoJson(); //this.ChartRendererConfigured = new ChartRenderer(); this.OrderProcessor = new OrderProcessor(); this.AlertsForChart = new DictionaryManyToOne <ChartShadow, Alert>(); this.AssemblerDataSnapshot = new AssemblerDataSnapshot(); this.AssemblerDataSnapshotSerializer = new Serializer <AssemblerDataSnapshot>(); }
// [Obsolete("looks illogical, move IStatusReporter to Initialize() and use Assembler.InstanceInitialized instead of Assembler.Constructed")] // protected Assembler(IStatusReporter mainForm) : this() { // this.StatusReporter = mainForm; // Assembler.instance = this; // } public Assembler() { this.RepositoryCustomSymbolInfo = new RepositoryCustomSymbolInfo(); this.MarketInfoRepository = new RepositoryCustomMarketInfo(); this.RepositoryJsonDataSource = new RepositoryJsonDataSource(); this.RepositoryDllJsonStrategy = new RepositoryDllJsonStrategy(); this.RepositoryDllStaticProvider = new RepositoryDllStaticProvider(); this.RepositoryDllStreamingProvider = new RepositoryDllStreamingProvider(); this.RepositoryDllBrokerProvider = new RepositoryDllBrokerProvider(); this.RepositoryDllReporters = new RepositoryDllReporters(); this.WorkspacesRepository = new RepositoryFoldersNoJson(); //this.ChartRendererConfigured = new ChartRenderer(); this.OrderProcessor = new OrderProcessor(); this.AlertsForChart = new DictionaryManyToOne<ChartShadow, Alert>(); this.AssemblerDataSnapshot = new AssemblerDataSnapshot(); this.AssemblerDataSnapshotSerializer = new Serializer<AssemblerDataSnapshot>(); }