public static ITransactionalUnitOfWork BeginTransactionalUnitOfWorkScope(this IWindsorContainer me)
 {
     var currentScope = CurrentScope;
     if(currentScope == null)
     {
         return CurrentScope = new TransactionalUnitOfWorkWindsorScope(me);    
     }
     return new InnerTransactionalUnitOfWorkWindsorScope(CurrentScope);
 }
Beispiel #2
0
        public static ITransactionalUnitOfWork BeginTransactionalUnitOfWorkScope(this IWindsorContainer me)
        {
            var currentScope = CurrentScope;

            if (currentScope == null)
            {
                return(CurrentScope = new TransactionalUnitOfWorkWindsorScope(me));
            }
            return(new InnerTransactionalUnitOfWorkWindsorScope(CurrentScope));
        }