Exemple #1
0
 public void Start()
 {
     if (ServiceManagers.ContainsKey(0))
     {
         if (ServiceManagers[0] is ILinkManager)
         {
             StartWork();
             return;
         }
     }
     throw new Exception("No linkmanager configured");
 }
Exemple #2
0
        public bool AddServiceManager(ServiceManager manager)
        {
            bool result = false;

            if (!ServiceManagers.ContainsKey(manager.SSAP))
            {
                try
                {
                    ServiceManagers.Add(manager.SSAP, manager);
                    result = true;
                }
                catch
                {
                }
            }
            return(result);
        }