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