wcf - IParameterInspector Identify a REST Service -


i planning add wcf behavior web services(soap + rest) in solution. plan use same iparameterinspector implementation. there way in implementation can identify if request call wcf service or rest service.

i found solution below

//to identify if rest service. //action null in case of rest service

bool isrestservice = string.isnullorempty(operationcontext.current.incomingmessageheaders.action);


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -