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
Post a Comment