public ListenerStarterActions(IListenerActions actions)
 {
     _actions = actions;
     _listeners = new List<IListener>();
     _currentPort = 2000;
 }
Пример #2
0
 public Communication(IListenerActions deviceActions)
 {
     _listenerStarter = new ListenerStarterActions(deviceActions);
     _factoryListener = SocketsFactory.Instance.CreateListener();
     _factoryListener.Start(DEFAULT_PORT, _listenerStarter);
 }
Пример #3
0
 public void Start(int port,IListenerActions actions)
 {
     Port = port.ToString();
     _actions = actions;
     _listener.BindServiceNameAsync(Port).AsTask().Wait();
 }