private JsonpMediaTypeFormatter(JsonpMediaTypeFormatter parent, string callback, string jsonpState, string callbackQueryParameter, string jsonpStateQueryParameter)
			: this(callbackQueryParameter, jsonpStateQueryParameter)
		{
			if (parent == null)
				throw new ArgumentNullException("parent");
			if (string.IsNullOrEmpty(callback))
				throw new ArgumentNullException("callback");

			SerializerSettings = parent.SerializerSettings;

			_Callback = callback;
			_JsonpState = jsonpState;
		}
示例#2
0
        private JsonpMediaTypeFormatter(JsonpMediaTypeFormatter parent, string callback, string jsonpState, string callbackQueryParameter, string jsonpStateQueryParameter)
            : this(callbackQueryParameter, jsonpStateQueryParameter)
        {
            if (parent == null)
            {
                throw new ArgumentNullException("parent");
            }
            if (string.IsNullOrEmpty(callback))
            {
                throw new ArgumentNullException("callback");
            }

            SerializerSettings = parent.SerializerSettings;

            _Callback   = callback;
            _JsonpState = jsonpState;
        }