public SipParserTest() { _parser = new SipParser(); _parser.HeaderParsed += OnHeader; _parser.BodyBytesReceived += OnBody; _parser.MessageComplete += OnComplete; }
public MessageFactoryContext(MessageFactory msgFactory, HeaderFactory factory, SipParser parser) { _msgFactory = msgFactory; _factory = factory; _parser = parser; parser.HeaderParsed += OnHeader; parser.MessageComplete += OnMessageComplete; parser.RequestLineParsed += OnRequestLine; parser.ResponseLineParsed += OnResponseLine; }