Exemplo n.º 1
0
 public void process(WebRequest request)
 {
     using (ISession session = SessionProvider.Instance.CreateSession())
     {
         using (ITransaction transaction = session.BeginTransaction(SessionProvider.Instance.IsolationLevel))
         {
             CurrentSessionContext.Bind(session);
             internal_command.process(request);
             CurrentSessionContext.Unbind(
                 SessionProvider.Instance.SessionFactory);
             transaction.Commit();
         }
     }
 }
Exemplo n.º 2
0
 public void process(WebRequest request)
 {
     discrete_command.process(request);
 }