Move C# WCF Extensibility code to Configuration File

后端 未结 1 1615
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 16:46

Following code adds ParameterInspector to the endpoint.

ChannelFactory factory = new ChannelFactory(\"BasicHttpBinding_ITest\");
O         


        
相关标签:
1条回答
  • 2021-01-16 17:38

    The type OperationProfilerEndpointBehavior which is referenced in the <extensions> / <behaviorExtensions> section of the config should not be a class implementing IEndpointBehavior - it should be a type which inherits from BehaviorElementExtension, and that class is the one which should create the behavior.

    See more information about behavior extensions at http://blogs.msdn.com/b/carlosfigueira/archive/2011/06/28/wcf-extensibility-behavior-configuration-extensions.aspx.

    0 讨论(0)
提交回复
热议问题