Exemplo n.º 1
0
 public void OnExit()
 {
     isStoped = true;
     foreach (var i in simluater.Values)
     {
         i.Exit();// = true;
         //i.Runner.Join(100);
     }
     simluater.Clear();
 }
Exemplo n.º 2
0
        public static void Refresh(string sPath)
        {
            m_diProviders.Clear();

            DirectoryInfo di = new DirectoryInfo(sPath);

            if (di.Exists)
            {
                FileInfo[] pluginFiles = di.GetFiles("*.dll");

                m_logger.InfoFormat("Found {0} dll file(s). Starting loading provider assemblies...", pluginFiles.Length);

                foreach (FileInfo fi in pluginFiles)
                {
                    Analyze(fi);
                }
            }
            else
            {
                m_logger.ErrorFormat("Cannot load line providers from {0} because this directory does not exis", new Exception(""), di.FullName);
            }
        }
Exemplo n.º 3
0
 public void TestClear()
 {
     serverSyncDictionary.Clear();
     SerializeDeltaTo(serverSyncDictionary, clientSyncDictionary);
     Assert.That(serverSyncDictionary, Is.EquivalentTo(new SyncDictionary <int, string>()));
 }
Exemplo n.º 4
0
 public void OnExit()
 {
     _battlePlayers.Clear();
     UserSimulaterMapping.Clear();
 }