activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r507688 - in /activemq/activemq-dotnet/trunk/src/main/csharp: ActiveMQ/Session.cs NMS/ISession.cs
Date Wed, 14 Feb 2007 20:59:11 GMT
Author: jstrachan
Date: Wed Feb 14 12:59:10 2007
New Revision: 507688

URL: http://svn.apache.org/viewvc?view=rev&rev=507688
Log:
Added CreateObjectMessage API

Modified:
    activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Session.cs
    activemq/activemq-dotnet/trunk/src/main/csharp/NMS/ISession.cs

Modified: activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Session.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Session.cs?view=diff&rev=507688&r1=507687&r2=507688
==============================================================================
--- activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Session.cs (original)
+++ activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Session.cs Wed Feb 14 12:59:10
2007
@@ -276,6 +276,13 @@
                         return answer;
                 }
 
+                public IObjectMessage CreateObjectMessage(object body)
+                {
+                        ActiveMQObjectMessage answer = new ActiveMQObjectMessage();
+                        answer.Body = body;
+                        return answer;
+                }
+
                 public void Commit()
                 {
                         if (!Transacted)

Modified: activemq/activemq-dotnet/trunk/src/main/csharp/NMS/ISession.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/NMS/ISession.cs?view=diff&rev=507688&r1=507687&r2=507688
==============================================================================
--- activemq/activemq-dotnet/trunk/src/main/csharp/NMS/ISession.cs (original)
+++ activemq/activemq-dotnet/trunk/src/main/csharp/NMS/ISession.cs Wed Feb 14 12:59:10 2007
@@ -97,6 +97,11 @@
                 IMapMessage CreateMapMessage();
 
                 /// <summary>
+                /// Creates a new Object message containing the given .NET object as the
body
+                /// </summary>
+                IObjectMessage CreateObjectMessage(object body);
+
+                /// <summary>
                 /// Creates a new binary message
                 /// </summary>
                 IBytesMessage CreateBytesMessage();



Mime
View raw message