[smuxi: 3/3] Engine: mark message buffers as serializable else they can't be used by remote frontends



commit 776f1f68d06d1ae71dcb6a30bf4d6e6fe9c2abb9
Author: Mirco Bauer <meebey meebey net>
Date:   Sat Apr 25 07:43:52 2015 +0200

    Engine: mark message buffers as serializable else they can't be used by remote frontends

 src/Engine/MessageBuffers/Db4oMessageBuffer.cs |    1 +
 src/Engine/MessageBuffers/ListMessageBuffer.cs |    1 +
 src/Engine/MessageBuffers/MessageBufferBase.cs |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine/MessageBuffers/Db4oMessageBuffer.cs b/src/Engine/MessageBuffers/Db4oMessageBuffer.cs
index d154275..9691a02 100644
--- a/src/Engine/MessageBuffers/Db4oMessageBuffer.cs
+++ b/src/Engine/MessageBuffers/Db4oMessageBuffer.cs
@@ -29,6 +29,7 @@ using Smuxi.Common;
 
 namespace Smuxi.Engine
 {
+    [Serializable]
     public class Db4oMessageBuffer : MessageBufferBase
     {
 #if LOG4NET
diff --git a/src/Engine/MessageBuffers/ListMessageBuffer.cs b/src/Engine/MessageBuffers/ListMessageBuffer.cs
index d6ef362..511019c 100644
--- a/src/Engine/MessageBuffers/ListMessageBuffer.cs
+++ b/src/Engine/MessageBuffers/ListMessageBuffer.cs
@@ -23,6 +23,7 @@ using System.Collections.Generic;
 
 namespace Smuxi.Engine
 {
+    [Serializable]
     public class ListMessageBuffer : List<MessageModel>, IMessageBuffer
     {
         int f_MaxCapacity;
diff --git a/src/Engine/MessageBuffers/MessageBufferBase.cs b/src/Engine/MessageBuffers/MessageBufferBase.cs
index 59537ef..ed718b8 100644
--- a/src/Engine/MessageBuffers/MessageBufferBase.cs
+++ b/src/Engine/MessageBuffers/MessageBufferBase.cs
@@ -26,6 +26,7 @@ using Smuxi.Common;
 
 namespace Smuxi.Engine
 {
+    [Serializable]
     public abstract class MessageBufferBase : IMessageBuffer
     {
         protected string Protocol { get; set; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]