コード例 #1
0
 /// <summary>
 /// Called if an action on the session fails
 /// </summary>
 /// <param name="session"></param>
 public void FailSession(ISession session)
 {
     if (threadScopeInfo.HasInitializedScope)
     {
         ISessionScope scope = threadScopeInfo.GetRegisteredScope();
         scope.FailSession(session);
     }
     else
     {
         session.Clear();
     }
 }