示例#1
0
 public SipParserTest()
 {
     _parser = new SipParser();
     _parser.HeaderParsed += OnHeader;
     _parser.BodyBytesReceived += OnBody;
     _parser.MessageComplete += OnComplete;
 }
示例#2
0
 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;
 }
 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;
 }