0

En regardant http://msdn.microsoft.com/en-us/library/ms731303.aspx, et http://msdn.microsoft.com/en-us/library/ms789007.aspx, des exemples sont donnés qui spécifient ServiceBehavior, mais existe-t-il un moyen de spécifier un endpointBehavior dans behaviorConfiguration? Quelque chose commeSyntaxe pour spécifier à la fois ServiceBehavior et EndpointBehavior?

<service name="ServiceName1" behaviorConfiguration="ServiceBehavior1;EndpointBehavior1"> 
... 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="ServiceBehavior1"> 
... 
     </behavior> 
     </serviceBehaviors> 
     <endpointBehaviors> 
     <behavior name="EndpointBehavior1"> 
... 
     </behavior> 
     </endpointBehaviors> 
    </behaviors> 
... 

Répondre

1

Question idiote, l'élément de point de terminaison du web.config possède également son propre attribut behaviorConfiguration.

<endpoint 
     behaviorConfiguration="EndpointBehavior1" ... 
Questions connexes