Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ServiceBehaviorは契約ではなく、サービスクラスの属性である必要があると人々が指摘する場所をたくさん見つけましたが、これは間違いなく当てはまるようです。どうしてこれなの?
これは、サービスの実装の詳細を扱い、契約の一部ではないためです。
セッション、再入力などの動作はすべて実装を処理するため、同じコントラクト(インターフェイス)を使用できますが、異なるエンドポイントで異なる実装を公開できます。