Ejemplo n.º 1
0
 // the ioc dispatcher has invoked the command successfully
 private static void OnScopeSuccessful(object sender, IocScopeEventArgs e)
 {
     e.ChildScope.Resolve<IAppUnitOfWork>().SaveChanges();
 }
Ejemplo n.º 2
0
 // a new child container / scope has been created by the IoC dispatcher.
 // resolve the Uow so that it gets created.
 private static void OnScopeStarted(object sender, IocScopeEventArgs e)
 {
     e.ChildScope.Resolve<IAppUnitOfWork>();
 }