Exemple #1
0
        public void Run(string[] args)
        {
            foreach (var item in Ssfi.NetworkConfig.Services)
            {
                SetService(item);
            }

            GlobalInitFinish();

            foreach (var item in _services)
            {
                if (item.Key.ServiceType == ServiceType.Server)
                {
                    if (item.Key.Enable)
                    {
                        item.Value.StartServer(item.Key);
                    }
                }

                if (item.Key.ServiceType == ServiceType.Client)
                {
                    if (item.Key.Enable)
                    {
                        item.Value.Connect(item.Key);
                    }
                }
            }

            InteractiveManager.Show(Show);
            InteractiveManager.RunInteractive(this, args);
        }