Ejemplo n.º 1
0
 public BarsikClient()
 {
     var engineFactory = new SourceEngineFactory();
     requester = new UDPRequester(engineFactory);
     dataParser = new SourceDataParser();
     detector = new ProtocolDetector();
     logListener = new LogListener();
     logListener.Start();
 }
Ejemplo n.º 2
0
 public Server(ServerAddress address, EngineFactory engineFactory, LogListener logListener)
 {
     this.requester = new UDPRequester(engineFactory);
     this.dataParser = engineFactory.CreateDataParser();
     this.logListener = logListener;
     Address = address;
     Rcon = new Rcon(Address);
     logListener.OnLogMessageReceived += LogListener_OnLogMessageReceived;
 }