Exemplo n.º 1
0
 public static IRemoteCOMManager GetInstance(IConfigurationManager manager, String comPort)
 {
     if (!_managers.ContainsKey(comPort))
     {
         _managers[comPort] = new RemoteCOMManager(manager, comPort);
     }
     _managers[comPort].AddReference();
     return(_managers[comPort]);
 }
Exemplo n.º 2
0
 public virtual void Initialize(IConfigurationManager manager)
 {
     _configManager = manager;
     _manager       = RemoteCOMManager.GetInstance(_configManager, COMPort);
 }