डब्ल्यूसीएफ सेवाओं में कई अंतराल हो सकते हैं, जिनमें से प्रत्येक एक अलग सेवा अनुबंध लागू कर सकता है।
उदाहरण के लिए, आप एक सेवा हो सकता था इस प्रकार की घोषणा की:
[ServiceBehavior(Namespace = "DemoService")]
public class DemoService : IDemoService, IDoNothingService
कौन सा इन पंक्तियों के साथ विन्यास होगा:
<service name="DemoService" behaviorConfiguration="Debugging">
<host>
<baseAddresses>
<add baseAddress = "http://localhost/DemoService.svc" />
</baseAddresses>
</host>
<endpoint
address =""
binding="customBinding"
bindingConfiguration="InsecureCustom"
bindingNamespace="http://schemas.com/Demo" contract="IDemoService"/>
<endpoint
address =""
binding="customBinding"
bindingConfiguration="InsecureCustom"
bindingNamespace="http://schemas.com/Demo" contract="IDoNothingService"/>
</service>
आशा है कि मदद करता है, लेकिन आप सैद्धांतिक अधिकतम के बाद थे इंटरफेस जो आपके पास एक सेवा के लिए हो सकता है, मुझे संदेह है कि यह कुछ पागलपन से बड़ा है 2.
अच्छा। इसे साफ़ करने के लिए 10x। –