public void Start() { if (ServiceManagers.ContainsKey(0)) { if (ServiceManagers[0] is ILinkManager) { StartWork(); return; } } throw new Exception("No linkmanager configured"); }
public bool AddServiceManager(ServiceManager manager) { bool result = false; if (!ServiceManagers.ContainsKey(manager.SSAP)) { try { ServiceManagers.Add(manager.SSAP, manager); result = true; } catch { } } return(result); }