IDispatchMessageInspector.AfterReciveRequest を実装してから、次のように構成します。
<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>
しかし、うまくいきません。
アセンブリとローカル参照をチェックインしましたが、 dll が見つからないMicrosoft.WCF.Documentation.InspectorInserter
かHostApplication
、ネットで検索してHostApplication
dll をダウンロードしましたが、何も見つかりませんでした。
どうすればいいですか?
もっと実装する必要があるか、この構成が必要です。