Exemplo n.º 1
0
 public void Execute(OnOrderCreated ev)
 {
     using (IUnitOfWork uow = new UnitOfWork(RepositoryType.MongoDb))
     {
         IOrderQuery query = IoC.Container.Resolve <IOrderQuery>(uow);
         query.Add(new App.Order.Query.Entity.Order(ev.OrderId));
         uow.Commit();
     }
 }