Exemple #1
0
		public ISession Wrap(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
		{
			if (IsWrapped(realSession))
			{
				return realSession;
			}

			var wrapper = new TransactionProtectionWrapper(realSession, closeDelegate, disposeDelegate);

			return GenerateProxy(realSession, wrapper);
		}
Exemple #2
0
        public ISession WrapWithAutoTransaction(ISession realSession, SessionCloseDelegate closeDelegate,
                                                SessionDisposeDelegate disposeDelegate)
        {
            if (IsWrapped(realSession))
            {
                return(realSession);
            }

            var wrapper = new AutoTransactionProtectionWrapper(realSession, closeDelegate, disposeDelegate);

            return(GenerateProxy(realSession, wrapper));
        }
 public BasicTransactionProtectionWrapper(ISession realSession, SessionCloseDelegate closeDelegate,
                                          SessionDisposeDelegate disposeDelegate) : this(realSession, closeDelegate)
 {
     this.disposeDelegate = disposeDelegate;
 }
 public AutoTransactionProtectionWrapper(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate) : base(realSession, closeDelegate, disposeDelegate)
 {
 }
		public BasicTransactionProtectionWrapper(ISession realSession, SessionCloseDelegate closeDelegate,
		                                         SessionDisposeDelegate disposeDelegate) : this(realSession, closeDelegate)
		{
			this.disposeDelegate = disposeDelegate;
		}
 public ISession WrapWithAutoTransaction(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
 {
     return(realSession);
 }
 public ISession Wrap(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
 {
     return(realSession);
 }
		public TransactionProtectionWrapper(ISession realSession, SessionCloseDelegate closeDelegate,
		                                    SessionDisposeDelegate disposeDelegate)
			: base(realSession, closeDelegate, disposeDelegate)
		{
		}
        public ISession Wrap(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
        {
            if (IsWrapped(realSession))
            {
                return(realSession);
            }
            var wrapper = new TransactionProtectionWrapper(realSession, closeDelegate, disposeDelegate);

            return(BuildSessionWrapped(wrapper));
        }
 public BasicTransactionProtectionWrapperCrack(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate) : base(realSession, closeDelegate, disposeDelegate)
 {
 }
 public ISession WrapWithAutoTransaction(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
 {
     return realSession;
 }
 public ISession Wrap(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
 {
     return realSession;
 }
Exemple #13
0
 public ISession WrapWithAutoTransaction(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
 {
     throw new NotImplementedException();
 }
Exemple #14
0
        public ISession Wrap(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate)
        {
            var wrapper = new TransactionProtectionWrapper(realSession, closeDelegate, disposeDelegate);
            var wrapped = proxyFactory.CreateProxy <ISession>(wrapper, Commons.SessionProxyInterfaces);

            return(wrapped);
        }