Which configuration settings should you insert at line 03?

You are creating a client application by using Microsoft NET Framework 3.5 The client application uses a Windows Communication Foundation service.
To log the called service proxy methods and thBr parameters you implement custom endpoint behavior in the following class
class ParametersLoggerBehavior2 IEndpointBehavior{ }
You also create the following class for the custom behavior
class LoggerElement : BehaviorExtensionElement{ }
You add the following configuration code fragment to the application configuration file
(Line numbers are included for reference only)

01 <behaviors>
02 <endpointBehaviors>
03
04 </endpointBehaviors>
05 </behaviors>
06 <extensions>
07 <behaviorExtensions>
06 <add name="debugBehavior"type="Client.LoggerElement ClientApp, Version=1.0.0.0, Culture=neutral, 10 PublicKeyToken=null" />
09 </behaviorExtensions>
10 </extensions>

You need to ensure that the endpoint uses the custom behavior.
Which configuration settings should you insert at line 03?

You are creating a client application by using Microsoft NET Framework 3.5 The client application uses a Windows Communication Foundation service.
To log the called service proxy methods and thBr parameters you implement custom endpoint behavior in the following class
class ParametersLoggerBehavior2 IEndpointBehavior{ }
You also create the following class for the custom behavior
class LoggerElement : BehaviorExtensionElement{ }
You add the following configuration code fragment to the application configuration file
(Line numbers are included for reference only)

01 <behaviors>
02 <endpointBehaviors>
03
04 </endpointBehaviors>
05 </behaviors>
06 <extensions>
07 <behaviorExtensions>
06 <add name="debugBehavior"type="Client.LoggerElement ClientApp, Version=1.0.0.0, Culture=neutral, 10 PublicKeyToken=null" />
09 </behaviorExtensions>
10 </extensions>

You need to ensure that the endpoint uses the custom behavior.
Which configuration settings should you insert at line 03?

A.
<debugBehavior name="debug" />

B.
<behavior name="debug">
<debugBehavior />
</behavior>

C.
<behavior name="debug">
<ParametersLoggerBehavior />
</behavior>

D.
<ParametersLoggerBehavior name="debug">
<debugBehavior />
</ParametersLoggerBehavior>



Leave a Reply 0

Your email address will not be published. Required fields are marked *