public object BeforeCall(string operationName, object[] inputs) { if (WebOperationContext.Current != null) { string methodName = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters[callback]; if (methodName != null) { var property = new JSONPMessageProperty { MethodName = methodName }; OperationContext.Current.OutgoingMessageProperties.Add(Name, property); } } return(null); }
internal JSONPMessageProperty(JSONPMessageProperty other) { MethodName = other.MethodName; }