private void Dispose(bool dispoing) { if (!this.disposed) { if (dispoing) { SaveConfiguration(); if (this.bool_1) { InstrumentServer?.Dispose(); } if (this.bool_2) { DataServer?.Dispose(); } if (this.bool_3) { OrderServer?.Dispose(); } if (this.bool_4) { PortfolioServer?.Dispose(); } ProviderManager?.Dispose(); DataManager?.Dispose(); EventManager?.Dispose(); OutputManager?.Dispose(); } this.disposed = true; } }
public PortfolioManager(Framework framework, PortfolioServer portfolioServer) { this.framework = framework; Server = portfolioServer; Server?.Open(); Pricer = new Pricer(framework); }