public XmlRpcResponse DeserializeResponse(Stream inputStream, Type serviceType) { if (Configuration.AllowInvalidHTTPContent()) { inputStream = CopyStream(inputStream); RemoveLineBreaks(inputStream); // why are we doing this? } var xdoc = XmlDocumentLoader.LoadXmlDocument(inputStream); return(DeserializeResponse(xdoc, serviceType)); }
internal XmlKeyRefCompletionCommandHandler(IVsTextView textViewAdapter, ITextView textView, XmlKeyRefCompletionHandlerProvider provider) { if (!ErrorHandler.Failed(textViewAdapter.GetBuffer(out var textLines))) { IVsUserData userData = textLines as IVsUserData; Guid id = typeof(XmlKeyRefCompletionCommandHandler).GUID; userData.SetData(ref id, this); } this.DocumentDataLoader = new XmlDocumentLoader(textView); m_textView = textView; m_provider = provider; //add the command to the command chain textViewAdapter.AddCommandFilter(this, out m_nextCommandHandler); textView.TextBuffer.PostChanged += (sender, ea) => this.DocumentDataLoader.ScheduleReloading(XmlDocumentLoader.EditTimeout); }