ARTICLE

WCF 4.5 New Feature Intellisense Support For Config File

Posted by Vijay Prativadi Articles | WCF with C# September 30, 2012
Today, in this article let’s play around with one of the interesting and most useful concepts in WCF 4.5.
Reader Level:

Introduction

Today, in this article let's play around with one of the interesting and most useful concepts in WCF 4.5.

Question: What is intellisense support for configuration file?

In simple terms "It provides an easy and friendly way to access the code while working with the config file. The intellisense support is now enabled for the WCF config file".

Step 1: Create a new WCF 4.5 project.

 

Output.jpg
 

Step 2: The complete code of web.config file looks like this:
 

<?xml version="1.0"?>

<configuration>

  <system.serviceModel>

    <bindings>

      <basicHttpBinding>

        <binding name="BasicHttpBinding_IService1"/>

      </basicHttpBinding>

    </bindings>

    <client>

      <endpoint address="http://localhost:7395/Service1.svc" binding="basicHttpBinding" contract="WCFApp.IService1" bindingConfiguration="BasicHttpBinding_IService1" name="BasicHttpBinding_IService1"/>

    </client>

  </system.serviceModel>

  <system.web>

    <compilation debug="true"/>

  </system.web>

</configuration>


Step 3: The output of the application showing intellisense enabled for the config file looks like this:

  Output1.png

I hope this article is useful for you.

Login to add your contents and source code to this article
post comment
     

Sure Sir, Thanks for Suggestion...It's sometimes hard to decide the correct title for some workings...Hope the search engines can crawl better now.... helping find right article for users!

Posted by Vijay Prativadi Oct 02, 2012

Title: Hi Vijay, I would probably change the title of your articles to something like this.- Intellisense Support For Config File in WCF 4.5

Posted by Mahesh Chand Oct 02, 2012
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.