Skip to content
Permalink
Browse files
Add the new Enlist methods into the .NET NMS API v1.6.0.

Transaction bits are ifdef'd out for .NETCF
  • Loading branch information
Timothy A. Bish committed Mar 18, 2011
1 parent c7e042f commit fea0d8938a12f1448381f1ec848aaa77dd12aa20
Showing 4 changed files with 26 additions and 2 deletions.
@@ -73,6 +73,7 @@
<include name="${current.build.framework.assembly.dir}/System.Core.dll" />
<include name="${current.build.framework.assembly.dir}/System.Web.dll" />
<include name="${current.build.framework.assembly.dir}/System.Xml.dll" />
<include name="${current.build.framework.assembly.dir}/System.Transactions.dll" />
</assemblyfileset>
</if>
<if test="${current.build.framework != 'net-3.5' and current.build.framework != 'net-4.0'}">
@@ -81,6 +82,7 @@
<include name="${current.build.framework.assembly.dir}/System.dll" />
<include name="${current.build.framework.assembly.dir}/System.Web.dll" />
<include name="${current.build.framework.assembly.dir}/System.Xml.dll" />
<include name="${current.build.framework.assembly.dir}/System.Transactions.dll" />
</assemblyfileset>
</if>

@@ -15,7 +15,9 @@
* limitations under the License.
*/

using System;
#if !NETCF
using System.Transactions;
#endif

namespace Apache.NMS
{
@@ -32,6 +34,13 @@ public interface INetTxConnection : IConnection
/// Creates a INetTxSession object.
/// </summary>
INetTxSession CreateNetTxSession();

#if !NETCF
/// <summary>
/// Creates a INetTxSession object.
/// </summary>
INetTxSession CreateNetTxSession(Transaction tx);
#endif
}
}

@@ -15,7 +15,9 @@
* limitations under the License.
*/

using System;
#if !NETCF
using System.Transactions;
#endif

namespace Apache.NMS
{
@@ -38,6 +40,16 @@ namespace Apache.NMS
/// </summary>
public interface INetTxSession : ISession
{
#if !NETCF
/// <summary>
/// Enlist the Session in the specified Transaction.
///
/// If the Session is already enlisted in a Transaction or there is an Ambient
/// Transaction and the given TX is not that Transaction then an exception should
/// be thrown.
/// </summary>
void Enlist(Transaction tx);
#endif
}
}

@@ -42,6 +42,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Transactions" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
</ItemGroup>

0 comments on commit fea0d89

Please sign in to comment.