示例#1
0
 internal JSONPMessageProperty(JSONPMessageProperty other)
 {
     this.MethodName = other.MethodName;
 }
示例#2
0
 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;
 }