public void Clear() { Console.WriteLine($"{DateTime.Now} Framework::Clear"); Clock?.Clear(); ExchangeClock?.Clear(); EventBus?.Clear(); EventServer?.Clear(); EventManager?.Clear(); ProviderManager?.DisconnectAll(); ProviderManager?.Clear(); InstrumentManager?.Clear(); DataManager?.Clear(); SubscriptionManager?.Clear(); OrderManager?.Clear(); PortfolioManager?.Clear(); StrategyManager?.Clear(); AccountDataManager?.Clear(); GroupManager?.Clear(); OutputManager?.Clear(); GC.Collect(); EventServer.OnFrameworkCleared(this); }