Ejemplo n.º 1
0
        private static UnitOfWorkTransactionOptions GetUnitOfWorkOptions(NancyContext ctx)
        {
            object val;

            if (!ctx.Items.TryGetValue(UNIT_OF_WORK_OPTIONS, out val))
            {
                return(UnitOfWorkTransactionOptions.Default());
            }

            return(val as UnitOfWorkTransactionOptions ?? UnitOfWorkTransactionOptions.Default());
        }
Ejemplo n.º 2
0
 public ITransactionalUnitOfWorkScope CreateTransactionalScope()
 {
     return(CreateTransactionalScope(UnitOfWorkTransactionOptions.Default()));
 }
 public void Begin()
 {
     _scope = _unitOfWork.CreateTransactionalScope(UnitOfWorkTransactionOptions.Default());
 }
Ejemplo n.º 4
0
 protected UnitOfWorkMessageHandler()
     : this(UnitOfWorkTransactionOptions.Default())
 {
 }