Implement ServiceEndpoint.EndpointBehaviors
authorpjt33 <github@cheddarmonk.org>
Thu, 20 Jul 2017 11:02:16 +0000 (13:02 +0200)
committerMarek Safar <marek.safar@gmail.com>
Fri, 21 Jul 2017 08:52:05 +0000 (10:52 +0200)
This follows the reference source in understanding `EndpointBehaviors` to be an alias of `Behaviors` with a more general type.

Note that although an alias might not seem necessary to implement, when using netstandard1.3 the [`System.ServiceModel.Primitives`](https://www.nuget.org/packages/System.ServiceModel.Primitives) package exposes `EndpointBehaviors` but not `Behaviors`.

mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceEndpoint.cs

index 2a12209998f6bf6de6eb4e0072751f26e254ed25..2b481d6d8ae6a784198cb7d044da9e42fbeb4ccf 100644 (file)
@@ -68,9 +68,8 @@ namespace System.ServiceModel.Description
                        get { return behaviors; }
                }
 
-               [MonoTODO]
                public KeyedCollection<Type,IEndpointBehavior> EndpointBehaviors {
-                       get { throw new NotImplementedException (); }
+                       get { return behaviors; }
                }
 
                public ContractDescription Contract {