public Channel(ConnectionService connectionService, uint clientChannelId, uint clientInitialWindowSize, uint clientMaxPacketSize, uint serverChannelId) { Contract.Requires(connectionService != null); _connectionService = connectionService; ClientChannelId = clientChannelId; ClientInitialWindowSize = clientInitialWindowSize; ClientWindowSize = clientInitialWindowSize; ClientMaxPacketSize = clientMaxPacketSize; ServerChannelId = serverChannelId; ServerInitialWindowSize = Session.InitialLocalWindowSize; ServerWindowSize = Session.InitialLocalWindowSize; ServerMaxPacketSize = Session.LocalChannelDataPacketSize; }
protected Channel(ConnectionService connectionService, uint clientChannelId, uint clientInitialWindowSize, uint clientMaxPacketSize, uint serverChannelId) { Contract.Requires(connectionService != null); this.ConnectionService = connectionService; this.ClientChannelId = clientChannelId; this.ClientInitialWindowSize = clientInitialWindowSize; this.ClientWindowSize = clientInitialWindowSize; this.ClientMaxPacketSize = clientMaxPacketSize; this.ServerChannelId = serverChannelId; this.ServerInitialWindowSize = Session.InitialLocalWindowSize; this.ServerWindowSize = Session.InitialLocalWindowSize; this.ServerMaxPacketSize = Session.LocalChannelDataPacketSize; this.WhenConnected = DateTime.Now; }
public SessionChannel(ConnectionService connectionService, uint clientChannelId, uint clientInitialWindowSize, uint clientMaxPacketSize, uint serverChannelId) : base(connectionService, clientChannelId, clientInitialWindowSize, clientMaxPacketSize, serverChannelId) { }