It's possible to specify the transaction isolation level in the xml 
configuration, example:

<component id="SessionModule"
             service="BCS.Modules.ISessionModule, BCS.Modules"
             type="BCS.Modules.SessionModule, BCS.Impl"
             isTransactional="true">     
     <transaction>
        <method name="GetCurrentDate" />
        <method name="GetCurrentDateAndTime" />
     </transaction>
  </component>

For method GetCurrentDate it's possible to configuire in xml file to 
IsolatioLevel.ReadUncommited, or it'sonly in the metada of the class, 
example:

namespace BCS.BusinessRules {
   [Transactional]
   public class TransactionModule : ITransactionModule {

      [Transaction( TransactionMode.Requires, 
IsolationMode.ReadUncommitted, Distributed = false )]
      public Dictionary<String, double> CalculateGoalSetting( Member 
member, WorkflowContext contextSetting ) { 
       // Calling a lot of child transactional methods for this unit of work
      }

      [Transaction( TransactionMode.Requires, 
IsolationMode.ReadUncommitted, Distributed = false )]
      public MembershipOperationResult SelfEnrollment( Member member ) {
          // Same here, Another unit of work      
      }

   }

}

Thanks in advance =)

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/castle-project-users/-/Q6xgSKd6aJQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to