Over the years, this blog has been about many different things related to software development with Microsoft technologies. Since my current role focuses on PowerApps & Flow, that's what it's primarily about right now.
The Windows Azure Service Bus Relay enables applications hosted anywhere with an internet connection to securely call back to applications hosted in your own datacenter behind a firewall. The CRM 2011 SDK offers documentation on how to use the Windows Azure Service Bus Relay from CRM Online. Here’s a link to the documentation that describes the scenario:
My old team is having a developer dinner tomorrow night titled Developing SharePoint 2010 Solutions Using External Data and Services. See here for more details at http://bit.ly/kPUq5n.
What you will learn
SharePoint 2010 allows developers to work with both internal and external data using Business Connectivity Services (BCS), Excel Services, Access Services and custom WCF services. During the presentation we will discuss and demonstrate several common usage scenarios.
Bringing SQL Server data to SharePoint using BCS
Sharing Excel Data using PowerPivot for SharePoint
Publishing Access Database applications to SharePoint
Sharing secure data using BCS and the secure store service
Creating Silverlight Using WCF RIA services for SharePoint
The post is all about using LINQPad as a tool to write your LINQ queries, then using the feature in LINQPad that gives you the url query translation. Well today, a new MSDN Code Callery project just popped up called OQuery that offers another approach that doesn’t require using an external tool such as LINQPad:
The major caveat (and bummer) with the library is that “LINQ support in the client library has been removed as the core support is not yet available on the phone platform.” I have a tip/trick for LINQ lovers like me that will allow you to still use LINQ query syntax to compose your query (kind/sorta). A tool I find useful to when writing OData queries on Windows Phone 7 is LINQPad. I use the tool to write LINQ queries against my data service, then get the url syntax query translated for me:
Once I get my LINQ query right, I just paste the http string into my app. I’m still surprised about how many people aren’t aware of LINQPad. You must check it out if you use LINQ in your day to day coding (which I am sure most of you do now). You can learn more about using LINQPad against OData services (amongst many other uses) from the product site:
This is a topic I have customer conversations about quite often. I just found my latest “watch this, then let’s talk about it” reference. Tony Sneed just published a webinar about the topic. Definitely worth watching if you are interested in this scenario.
If you have a need to consume REST Services from .NET Framework based code, then you should really have look at the WCF Rest Starter Kit. There is a handy class called HttpClient that is, in my opinion, provides the best / cleanest way to consume REST services at the http level. Essentially, it gives you the ability to make http calls as easy as:
There is so much more to HttpClient than the little snippet above, including ways to easily hydrate / deserialize the response of the REST service into a .NET types. You have quite a bit of power / control over the common REST service consumption scenarios. There’s a nice little blog post over at The .NET Endpoint blog which covers HttpClient. The BEST starting point, again my opinion, for learning about HttpClient is these two Ch. 9 screencasts by Aaron Skonnard: