static void Main(string[] args) { string queuepath = ConfigurationManager.AppSettings["OrderQueuePath"]; OrderDataProcessor _ordprocssor = new OrderDataProcessor(new SqliteDbProvider()); IQueueEngine queueEngine = new MsQueueEngine(); OrderQueueProcessor queueProcessor = new OrderQueueProcessor(queueEngine); queueProcessor.createOrderQueue(@".\Private$\" + queuepath); queueProcessor.SetupMessageReciever(typeof(Order)); queueProcessor.ReadOrderQueue(); Console.ReadLine(); queueProcessor.DisposeQueue(); }
public OrderProcessor() { orderdata = new OrderDataProcessor(new SqliteDbProvider()); }