* BinaryServerFormatterSink.cs: Fixed argument name to match MS.
[mono.git] / mcs / class / System.Runtime.Remoting / System.Runtime.Remoting.Channels / BinaryClientFormatterSinkProvider.cs
index 6aee1b8e1c05447477876b46f65a8ecfc0def027..64482b84f2e4b06c58919d014e9c86b48059614c 100644 (file)
@@ -2,10 +2,32 @@
 // System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.cs
 //
 // Author: Rodrigo Moya (rodrigo@ximian.com)
+//         Lluis Sanchez Gual (lluis@ximian.com)
 //
 // 2002 (C) Copyright, Ximian, Inc.
 //
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System.Collections;
 
 namespace System.Runtime.Remoting.Channels
@@ -16,6 +38,12 @@ namespace System.Runtime.Remoting.Channels
                IClientChannelSinkProvider next = null;
                BinaryCore _binaryCore;
 
+#if NET_1_1
+               static string[] allowedProperties = new string [] { "includeVersions", "strictBinding", "typeFilterLevel" };
+#else
+               static string[] allowedProperties = new string [] { "includeVersions", "strictBinding" };
+#endif
+
                public BinaryClientFormatterSinkProvider ()
                {
                        _binaryCore = BinaryCore.DefaultInstance;
@@ -24,7 +52,7 @@ namespace System.Runtime.Remoting.Channels
                public BinaryClientFormatterSinkProvider (IDictionary properties,
                                                          ICollection providerData)
                {
-                       _binaryCore = new BinaryCore (this, properties);
+                       _binaryCore = new BinaryCore (this, properties, allowedProperties);
                }
 
                public IClientChannelSinkProvider Next