예제 #1
0
 // the ioc dispatcher has invoked the command successfully
 private static void OnScopeSuccessful(object sender, IocScopeEventArgs e)
 {
     e.ChildScope.Resolve<IAppUnitOfWork>().SaveChanges();
 }
예제 #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>();
 }