Author: jstrachan
Date: Wed Feb 14 12:17:28 2007
New Revision: 507676
URL: http://svn.apache.org/viewvc?view=rev&rev=507676
Log:
Removed use of ISerializable from the IObjectMessage API
Modified:
activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Commands/ActiveMQObjectMessage.cs
activemq/activemq-dotnet/trunk/src/main/csharp/NMS/IObjectMessage.cs
Modified: activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Commands/ActiveMQObjectMessage.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Commands/ActiveMQObjectMessage.cs?view=diff&rev=507676&r1=507675&r2=507676
==============================================================================
--- activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Commands/ActiveMQObjectMessage.cs
(original)
+++ activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Commands/ActiveMQObjectMessage.cs
Wed Feb 14 12:17:28 2007
@@ -39,7 +39,7 @@
{
public const byte ID_ActiveMQObjectMessage = 26;
- private ISerializable body;
+ private object body;
private IFormatter formatter;
@@ -55,13 +55,13 @@
// Properties
- public ISerializable Body
+ public object Body
{
get
{
if (body == null)
{
- body = (ISerializable) Formatter.Deserialize(new MemoryStream(Content));
+ body = Formatter.Deserialize(new MemoryStream(Content));
}
return body;
}
Modified: activemq/activemq-dotnet/trunk/src/main/csharp/NMS/IObjectMessage.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/NMS/IObjectMessage.cs?view=diff&rev=507676&r1=507675&r2=507676
==============================================================================
--- activemq/activemq-dotnet/trunk/src/main/csharp/NMS/IObjectMessage.cs (original)
+++ activemq/activemq-dotnet/trunk/src/main/csharp/NMS/IObjectMessage.cs Wed Feb 14 12:17:28
2007
@@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-using System.Runtime.Serialization;
-
namespace NMS
{
/// <summary>
@@ -23,7 +21,7 @@
/// </summary>
public interface IObjectMessage : IMessage
{
- ISerializable Body
+ object Body
{
get;
}
|