Reader Level:
Articles

WCF 4.5 New Feature Intellisense Support For Config File

By Vijay Prativadi on September 30, 2012
Today, in this article let’s play around with one of the interesting and most useful concepts in WCF 4.5.
  • 0
  • 0
  • 3940

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.

Vijay Prativadi

Hey Everyone, It's Vijay. I am SDE mostly up on Microsoft Technologies. If you are thinking to know what I do mostly when at work. I get a chance to work upon few Microsoft technologies. All the way along my core tech... Read more

COMMENT USING

Trending up