diff --git a/src/net45/WampSharp.WAMP1/WAMP1/V1/Api/Server/WampRequestContext.cs b/src/net45/WampSharp.WAMP1/WAMP1/V1/Api/Server/WampRequestContext.cs index 9c7759fcd..5080f6cde 100644 --- a/src/net45/WampSharp.WAMP1/WAMP1/V1/Api/Server/WampRequestContext.cs +++ b/src/net45/WampSharp.WAMP1/WAMP1/V1/Api/Server/WampRequestContext.cs @@ -1,9 +1,13 @@ -using System.Runtime.Remoting.Messaging; +using System; +using System.Runtime.Remoting.Messaging; using WampSharp.V1.Core.Contracts; using WampSharp.V1.Cra; namespace WampSharp.V1 { +#if !PCL + [Serializable] +#endif public class WampRequestContext { #region Static Members diff --git a/src/net45/WampSharp/WAMP2/V2/Api/WampEventContext.cs b/src/net45/WampSharp/WAMP2/V2/Api/WampEventContext.cs index 36f5be86d..aabb7bb41 100644 --- a/src/net45/WampSharp/WAMP2/V2/Api/WampEventContext.cs +++ b/src/net45/WampSharp/WAMP2/V2/Api/WampEventContext.cs @@ -9,6 +9,9 @@ namespace WampSharp.V2 /// /// Includes information about the current event. /// +#if !PCL + [Serializable] +#endif public class WampEventContext { diff --git a/src/net45/WampSharp/WAMP2/V2/Api/WampInvocationContext.cs b/src/net45/WampSharp/WAMP2/V2/Api/WampInvocationContext.cs index fe506bee1..db01a14eb 100644 --- a/src/net45/WampSharp/WAMP2/V2/Api/WampInvocationContext.cs +++ b/src/net45/WampSharp/WAMP2/V2/Api/WampInvocationContext.cs @@ -10,6 +10,9 @@ namespace WampSharp.V2 /// /// Includes information about the current invocation. /// +#if !PCL + [Serializable] +#endif public class WampInvocationContext { #region Static Members