public PeerVoiceReceiver(string remoteName, ushort localId, string localName, EventQueue events, Rooms listeningRooms, ConcurrentPool <byte[]> byteArrPool, ConcurrentPool <List <RemoteChannel> > channelListPool) { _name = remoteName; _localId = localId; _localName = localName; _events = events; _localListeningRooms = listeningRooms; _byteArrPool = byteArrPool; _channelListPool = channelListPool; }
public SlaveClientCollection([NotNull] ISendQueue <TPeer> sender, [NotNull] ISession session, [NotNull] EventQueue events, [NotNull] Rooms localRooms, [NotNull] string playerName, CodecSettings codecSettings) { if (session == null) { throw new ArgumentNullException("session"); } if (sender == null) { throw new ArgumentNullException("sender"); } if (events == null) { throw new ArgumentNullException("events"); } if (localRooms == null) { throw new ArgumentNullException("localRooms"); } if (playerName == null) { throw new ArgumentNullException("playerName"); } _session = session; _sender = sender; _events = events; _localRooms = localRooms; _playerName = playerName; _codecSettings = codecSettings; }