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(); }
public Client(Bridge bridge, int id) { _clientID = id; _bridge = bridge; }
public Client(Bridge bridge, int id) { clientId = id; this.bridge = bridge; }
public Server(Bridge bridge, int id) { _serverID = id; _bridge = bridge; _pipe = new ServerPipe(PipeName, this); }