WCF Interview Question and Answers

21. What are the different modes of communication in WCF?
 
  • One - way
  • Request - Reply
  • Callback
 
Your Name Your Email-ID
Your Answer
22. What is meant by throttling in WCF?
  WCF throttling provides you with some properties that help you to limit the number of instances and sessions that you can create at application level.
 
Your Name Your Email-ID
Your Answer
23. What are the types of Data contracts in WCF?
 
    There are two types of Data contracts are
  • Data contract - Attribute used to define the class.
  • Data member - Attribute used to define the properties.
 
Your Name Your Email-ID
Your Answer
24. What are different isolation levels provided in WCF??
 
    The different isolation levels:
  • READ UNCOMMITTED
  • READ COMMITTED
  • REPEATABLE READ
  • SERIALIZABLE
 
Your Name Your Email-ID
Your Answer
25. What are the various ways of hosting a WCF service?
 
    There are three major ways to host a WCF service
  • Self hosting the service in his own application domain. The service comes in to existence when you create the object of ServiceHost class and the service closes when you call the Close of the ServiceHost class.
  • Host in application domain or process provided by IIS Server.
  • Host in Application domain and process provided by WAS(Windows Activation Service) Server.
 
Your Name Your Email-ID
Your Answer
12345 Page 5 of 5