Welcome to MSDN Blogs Sign in | Join | Help

You Are Here

Inside of a service method, how do I know where the message was delivered?

Without defining what distinguishes a location it's hard to explain where 'here' is. I've got a few guesses though based on the most common variations of this question:

  • OperationContext.Current.IncomingMessageHeaders.To
  • OperationContext.Current.IncomingMessageProperties.Via
  • HostingEnvironment.ApplicationVirtualPath
  • Assembly.GetExecutingAssembly().Location
  • HostingEnvironment.ApplicationPhysicalPath

Next time: Serialization Temporary Assemblies

Published Thursday, June 12, 2008 5:00 AM by Nicholas Allen
Filed under: , , ,

Comments

Thursday, June 12, 2008 1:41 PM by Nicholas Allen's Indigo Blog

# Tracing Network Calls

Many common networking problems can be diagnosed by tracing System.Net events. This is often much easier

New Comments to this post are disabled
 
Page view tracker