public Server(Bridge bridge, int id)
 {
     _serverID = id;
     this.bridge = bridge;
     pipe = new ServerPipe(PipeName, this);
 }
        /// <summary>
        /// Initializes data feed.
        /// </summary>
        private void InitDataFeed()
        {
            _tickLocalTime = DateTime.MinValue;

            _bridge = new Bridge {WriteLog = Configs.BridgeWritesLog};
            _bridge.Start(Data.ConnectionID);
            _bridge.OnTick += Bridge_OnTick;

            _timerPing = new Timer {Interval = 1000};
            _timerPing.Tick += TimerPingTick;
            _timerPing.Start();
        }
Exemplo n.º 3
0
 public Client(Bridge bridge, int id)
 {
     _clientID   = id;
     _bridge = bridge;
 }
Exemplo n.º 4
0
 public Client(Bridge bridge, int id)
 {
     clientId = id;
     this.bridge = bridge;
 }
Exemplo n.º 5
0
 public Server(Bridge bridge, int id)
 {
     _serverID = id;
     _bridge   = bridge;
     _pipe     = new ServerPipe(PipeName, this);
 }