protected SiusDataProvider() { var factory = new MessageFactory(this); _parser = new MessageParser(factory); _dumpFilePath = string.Format("{0}.log", DateTime.Now.ToString("yyyyMMdd_HHmmss")); }
/// <summary>Message parser for sius data messages. </summary> public MessageParser(MessageFactory businessObjectFactory) { _messageParser = new List<IMessageParser>(); _messageParser.Add(new PrchMessageParser(businessObjectFactory)); _messageParser.Add(new ShotMessageParser(businessObjectFactory)); _messageParser.Add(new TotalMessageParser(businessObjectFactory)); _messageParser.Add(new SubtotalMessageParser(businessObjectFactory)); }
public PrchMessageParser(MessageFactory messageFactory) { _messageFactory = messageFactory; }
public ShotMessageParser(MessageFactory messageFactory) { if (messageFactory == null) throw new ArgumentNullException("messageFactory"); _messageFactory = messageFactory; }
public TotalMessageParser(MessageFactory messageFactory) { _messageFactory = messageFactory; }