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