public ReceiverStmContext(ILink link, IChecksum cheksum, ISequenceGenerator sequenceGenerator, int maxMessageDataSize) { _message = new Message(maxMessageDataSize); _reply = new Message(0); _link = link; _sequence = sequenceGenerator; _checksum = cheksum; SetState(new MissingSync()); }
public SenderStmContext(ILink link, IChecksum checksum, ISequenceGenerator sequenceGenerator, int maxMessageDataSize, int timeoutModifier) { _checksum = checksum; _timeout = link.Timeout * timeoutModifier; _timer = new Timer(MessageTimeout); _link = link; _maxMessageDataSize = maxMessageDataSize; _message = new Message(_maxMessageDataSize); _reply = new Message(0); _sequence = sequenceGenerator; SetState(new Sending()); }
public virtual void ReceivedMessage(SenderStmContext context, Message message) { }