2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Thu, 28 May 2009 14:29:37 +0000 (14:29 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Thu, 28 May 2009 14:29:37 +0000 (14:29 -0000)
* ContractDescriptionGenerator.cs : fill ProtectionLevel by
  OperationContractAttribute.

svn path=/trunk/mcs/; revision=134954

mcs/class/System.ServiceModel/System.ServiceModel.Description/ChangeLog
mcs/class/System.ServiceModel/System.ServiceModel.Description/ContractDescriptionGenerator.cs

index 11788b7e47e090c6ba23f63d1a75c033bbb29dba..28071ec9364ff4e1bccd36521809b95a9c8d4c44 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ContractDescriptionGenerator.cs : fill ProtectionLevel by
+         OperationContractAttribute.
+
 2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>
 
        * ServiceCredentials.cs : IServiceBehavior.Validate() should not
index 72b986bf054d80d2ae4fe2b154fb4b1db362b806..e50bc8f2a78719ef68f4c7ed7f6467ec7d828ec8 100644 (file)
@@ -331,7 +331,8 @@ namespace System.ServiceModel.Description
                        mb.WrapperName = name + (isRequest ? String.Empty : "Response");
                        mb.WrapperNamespace = defaultNamespace;
 
-                       // FIXME: anything to do for ProtectionLevel?
+                       if (oca.HasProtectionLevel)
+                               md.ProtectionLevel = oca.ProtectionLevel;
 
                        // Parts
                        int index = 0;