Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Samples   (RSS)

AutoHeader Extension

I frequently get asked how to add a header to every outgoing request so I wrote up a quick reusable approach. This adds some extension methods to the IContextChannel class for working with auto-added headers. The headers are stored between calls in an

StockTrader 2.0 Sample

The .NET StockTrader was an end-to-end sample application released last year to demonstrate WCF and web service programming. A new version of StockTrader has been released to update the application with some of the new features in Orcas and Windows Server

Serving Data Grids in Silverlight

Jesse Liberty has posted a new tutorial demonstrating how to build a web service and Silverlight client application on top of a SQL data store . This shows off a number of features including LINQ, WCF, and Silverlight controls. Here are the major steps
Posted by Nicholas Allen | 0 Comments
Filed under: , ,

A Peek Behind the MySpace API

As part of the MySpace session at MIX they've put online the code for a sample called RESTchess . RESTchess is a WCF REST application that mimics a lot of the developments behind the WCF implementation of the MySpace developer API. If you're interested
Posted by Nicholas Allen | 2 Comments
Filed under: , ,

Using Call Context Initializers for Culture

Let's build on a few earlier samples to actually demonstrate a working call context initializer. I'll start with yesterday's skeleton for a call context initializer and behavior . To that skeleton I'll add implementations of BeforeInvoke and AfterInvoke

DinnerNow 2008

DinnerNow is a sample restaurant marketplace application that demonstrates many different Microsoft web service technologies. You may have seen the application distributed as a standalone sample as well as appearing in many hands-on labs and booth demos

Orcas Beta 2 Samples

When Orcas Beta 2 was released, all of the links for samples were still pointing to the Beta 1 SDK download for a few weeks. That's evidently changed recently as there is now a download available for the Orcas Beta 2 SDK samples .

Getting Orcas Beta 1 Samples

It feels like there have been a lot of these announcement posts lately, but that's because a lot of software is getting released. This online release of the Orcas samples should take care of everything relevant to WCF developers that has come out in the

ROT 128 Stream Upgrade Sample, Part 5

Today is the last part of the stream upgrade sample. We've already looked at all the parts required to make the stream upgrade operate: stream, binding element, provider, initiator, and acceptor. All that's left today is to build a test harness for the

ROT 128 Stream Upgrade Sample, Part 4

The final pieces needed for the ROT 128 sample are a stream upgrade initiator and a stream upgrade acceptor. The initiator starts the upgrade process by providing an upgrade type string from GetNextUpgrade. I've coded this so that the initiator and acceptor

ROT 128 Stream Upgrade Sample, Part 3

Last time, we built the binding element for the stream upgrade sample . The job of the binding element was to stash itself away in the binding context so that the transport could later pull out the stream upgrade and build the provider. This time we'll

ROT 128 Stream Upgrade Sample, Part 2

Building a stream upgrade for ROT 128 starts with creating a binding element to put in the channel stack. This binding element extends the special StreamUpgradeBindingElement base class , which functions very similarly to the specialized binding element

ROT 128 Stream Upgrade Sample, Part 1

The mission for the next five days is to build and demonstrate an implementation of a stream upgrade. For review, a stream upgrade is a component that plugs into the transport and rewrites the byte stream as it goes on and off of the network. Stream upgrades

ReplyMangler Channel

To finish up the series on one-way HTTP requests , I promised to supply a custom channel that fixes the scenario of using the POX message encoder together with one-way requests. This is primarily a code post since most of the interesting discussion is

Making One-Way HTTP Requests, Part 1

I promised yesterday that we would start using the HttpListener test program to look at some HTTP requests. I'm going to start by creating a fictional IPing service and a simple custom binding over HTTP. The test listener from yesterday was very basic
Posted by Nicholas Allen | 7 Comments
Filed under: , ,
More Posts Next page »
 
Page view tracker