Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public PortfolioManager(Framework framework, PortfolioServer portfolioServer)
 {
     this.framework = framework;
     Server = portfolioServer;
     Server?.Open();
     Pricer = new Pricer(framework);
 }
Exemplo n.º 3
0
 public PortfolioManager(Framework framework, PortfolioServer portfolioServer)
 {
     this.framework = framework;
     Server         = portfolioServer;
     Server?.Open();
     Pricer = new Pricer(framework);
 }