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