public PMSParser(PBXConfiguration config, ILogger log, IMessageConnectionFactory cf,
                         IApplicationClient ac, IClock c) :
            base(config, log, cf, ac, c)
        {
            var lexer = new PMSByteStreamLexer();

            lexer.EnquireRecieved += EnquireReceived;
            RegisterLexer(lexer);
        }
Пример #2
0
 protected PBXParser(PBXConfiguration config, ILogger log, IMessageConnectionFactory cf,
                     IApplicationClient ac, IClock c)
 {
     Log                    = log;
     CF                     = cf;
     AC                     = ac;
     C                      = c;
     Transport              = GetConfiguredTransport(log, config);
     Transport.DataArrived += TransportDataArrived;
 }
Пример #3
0
 public SMDRParser(PBXConfiguration config, ILogger log, IMessageConnectionFactory cf,
                   IApplicationClient ac, IClock c) :
     base(config, log, cf, ac, c)
 {
     RegisterLexer(new CRLFByteSreamLineLexer());
 }
Пример #4
0
 public SMDRParserTestShim(FakeTCPConfiguration config, ILogger log, IMessageConnectionFactory cf, IClock c)
     : base(config.PMSConnection, log, cf, new FakeApplicationClient(config, log, "fake client id"), c)
 {
     StartRabbitMQ();
 }
Пример #5
0
 public PingResponder(ILogger log, IMessageConnectionFactory cf)
 {
     _log = log;
     _cf  = cf;
 }