예제 #1
0
파일: Program.cs 프로젝트: Paul2687/CSTE
        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();
        }
예제 #2
0
 public OrderProcessor()
 {
     orderdata = new OrderDataProcessor(new SqliteDbProvider());
 }