Dispose() public method

public Dispose ( ) : void
return void
Esempio 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;
     }
 }