IDIspatchMessageInspector

I Implementiere IDispatchMessageInspector.AfterReciveRequest Dann konfiguriere ich wie folgt:

<configuration>
  <system.serviceModel>
    <services>
      <service 
        name="Microsoft.WCF.Documentation.SampleService"
        behaviorConfiguration="inspectorBehavior">
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8080/SampleService" />
          </baseAddresses>
        </host>
        <endpoint
          address=""
          binding="wsHttpBinding"
          contract="Microsoft.WCF.Documentation.ISampleService"
        />

      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="inspectorBehavior">
          <serviceInspectors />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <extensions>
      <behaviorExtensions>
        <add 
          name="serviceInspectors" 
          type="Microsoft.WCF.Documentation.InspectorInserter, HostApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
        />
      </behaviorExtensions>
    </extensions>
  </system.serviceModel>
</configuration>

aber es funktioniert nicht.

Ich überprüfe meine Baugruppe und meine lokale Referenz und habe @ nicht gefundMicrosoft.WCF.Documentation.InspectorInserter oderHostApplication dll ich suche im netz zum downloadHostApplication dll aber ich habe nichts gefunden.

Was muss ich tun

Ich muss mehr implementieren oder ich brauche nur diese Konfiguration.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage