Example #1
0
 public ListenerSerializer(int port, ISerializableObserver observer, IConnectObserver connectObserver)
 {
     this.Listener = new Listener(port, this, this);
     this.observer = observer;
     this.connectObserver = connectObserver;
     serializableIdService = ServiceLocator.GetService<SerializableIdService>();
 }
Example #2
0
 public ClientSerializer(TcpClient tcpClient, string ipAddress, int port, ISerializableObserver observer)
 {
     this.Client = new Client(tcpClient, ipAddress, port, this);
     this.observer = observer;
     serializableIdService = ServiceLocator.GetService<SerializableIdService>();
 }