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