Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

New sample posted: add your web services to Visual Studio's "Add Connected Service" dialog

$
0
0

The idea behind this sample is that you (as a service provider) can simplify the process that your developer customers (in VS 2013) have to go through in order to connect their client apps to your services. 

VS 2013 has a Services Manager dialog, which is the dialog that comes up when you choose the "Add Connected Service" menu item.  This menu item normally only shows up for certain project types, such as Windows Store projects, and normally only gives the developer options to add a connection to a mobile service in Windows Azure.  But, it is possible to use VS Extensibility to extend this dialog to add your own services.  Developers need only download and install a VS Extension (in the form of a .vsix file), and then this "Add Connected Service" menu item lights up in whatever project types you want to enable it in.

All of this is made possible by implementing a few interfaces and providing the relevant code snippet templates that enable this mechanism to inject code into your developer's projects when they use this command.

The specific example demonstrated in this sample uses a simple Web API service called BitService, which allows developers to provision "bits" which they can access securely (using a GUID access key), and perform CRUD operations on.  While this sample service is just a proof of concept, you should be able to further customize the sample extensibility project to work with your own services, just by providing the relevant connection code and some code snippet templates.

The page for the sample includes a lot of information on how to do it. Check out the sample code athttp://code.msdn.microsoft.com/Manager-sample-af85d0b7.  Enjoy and please submit feedback if you see any problems.

Gordon Hogenson - Microsoft


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>