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); }
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 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; }
public ISession WrapWithAutoTransaction(ISession realSession, SessionCloseDelegate closeDelegate, SessionDisposeDelegate disposeDelegate) { throw new NotImplementedException(); }
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); }