Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.976 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 39 | src/NHibernate/Engine/Transaction/Isolater.cs |
2 | 3 | 50 | src/NHibernate/Engine/Transaction/Isolater.cs |
| ||||
/// <summary> /// Ensures that all processing actually performed by the given work will /// occur on a seperate transaction. /// </summary> /// <param name="work">The work to be performed. </param> /// <param name="session">The session from which this request is originating. </param> public static void DoIsolatedWork(IIsolatedWork work, ISessionImplementor session) { session.Factory.TransactionFactory.ExecuteWorkInIsolation(session, work, true); } |
| ||||
/// <summary> /// Ensures that all processing actually performed by the given work will /// occur outside of a transaction. /// </summary> /// <param name="work">The work to be performed. </param> /// <param name="session">The session from which this request is originating. </param> public static void DoNonTransactedWork(IIsolatedWork work, ISessionImplementor session) { session.Factory.TransactionFactory.ExecuteWorkInIsolation(session, work, false); } |
| |||
/// <summary> /// Ensures that all processing actually performed by the given work will /// occur outside of a transaction. /// occur on a seperate transaction. /// </summary> /// <param name="work">The work to be performed. </param> /// <param name="session">The session from which this request is originating. </param> public static void [[#variable6e70d700]](IIsolatedWork work, ISessionImplementor session) { session.Factory.TransactionFactory.ExecuteWorkInIsolation(session, work, [[#variable6e70d6a0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6e70d700]] | DoNonTransactedWork |
1 | 2 | [[#6e70d700]] | DoIsolatedWork |
2 | 1 | [[#6e70d6a0]] | false |
2 | 2 | [[#6e70d6a0]] | true |