DelegatingChannels vs HttpModules

Topics: Web Api
Jun 27, 2011 at 5:30 AM

That's basically the question ...

For implementing security and logging, etc for a REST layer, both work.

But what's the benefit of either?

Gerben.

Coordinator
Jun 27, 2011 at 6:54 AM

Hi Gerben

Here's a few differences / benefits

  • Not coupledd to asp.net / works in self-host situations for example in a windows service, or a rich client.
  • Supports client and server. You can plug channels into http client.
  • Supports the new .NET FX HTTP Programming model (HttpRequestMessage/HttpResponseMessage)
  • Supports Task<T>