Following code adds ParameterInspector to the endpoint.
ChannelFactory factory = new ChannelFactory(\"BasicHttpBinding_ITest\");
O
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.