WCF 4.5 New Feature Intellisense Support For Config File

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.

Up Next
    Ebook Download
    View all
    Learn
    View all
    MVC Corporation is consulting and IT services based company.