Commit Graph
28 Commits
Author SHA1 Message Date
Atsushi Eno 4fab0ddf50 [WCF] fix syndication extension Add() resolution by appropriate accessibility.
I wonder why, but when switched to referencesource, it turned out that
ResourceCollectionInfo calls SyndicationElementExtensionCollection.Add()
which targets a private overload, but (of course) failed and resolved to
another overload that takes object, and thus resulting in invalid code path.

With this fix the call to Add() resolves to the expected one and does not
regress with referencesource import.
2015-04-24 14:36:59 +09:00
Atsushi Eno f204f35dfe [WCF] fix another use of XmlBinaryWriter that closes stream and accesses it later. 2015-04-24 14:36:57 +09:00
Atsushi Eno 545cdaf8f7 [WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
It needs LocalName. So use other overloads instead.
2015-02-21 03:33:23 +08:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Marcos Henrich d7c598b74c Rss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.
Fixes 23262.
2014-09-25 13:38:59 +01:00
Linquize ee48fc81a9 Atom10FeedFormatter should generate subtitle tag for Description property 2013-07-23 08:12:35 +08:00
Atsushi Eno 0dde95d9af Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods. 2011-04-08 21:38:09 +09:00
Atsushi Eno 96ca8b4b42 More xml output fixes in XmlSyndicationContent and SydicationElementExtension.
They have couple of complicated xml outputs in both GetReader(AtContent)
and Write(Contents)To methods... check new tests for details.
2011-03-08 22:04:18 +09:00
Atsushi Eno eafe520c4b Couple of fixes around XmlSyndicationContent.GetReaderAtContent().
- The returned XmlReader is positioned at the beginning of the element.
- XmlSyndicationContent.GetReaderAtContent() returns XmlReader that begins
  with the "wrapper" which is dummy Atom 1.0 content element.
2011-03-08 18:56:00 +09:00
Atsushi Eno f58223b1e8 2010-06-18 Atsushi Enomoto <[email protected]>
* Rss20ItemFormatter.cs : enabled DateTimeOffset parsing.
	  Fixed bug #615332, patch by Carlos Martin.


svn path=/trunk/mcs/; revision=159145
2010-06-18 17:53:42 +00:00
Atsushi Eno a5eefdf642 2010-06-16 Atsushi Enomoto <[email protected]>
* Atom10ItemFormatter.cs : Fix reading of "source" element to not
	  expect feed element (ReadFrom() expects it). Fixed bug #614596.


svn path=/trunk/mcs/; revision=159019
2010-06-16 12:42:09 +00:00
Atsushi Eno e84398552b Fix bug #612191, patch by Carlos Martin.
svn path=/trunk/mcs/; revision=158865
2010-06-14 06:20:36 +00:00
Atsushi Eno c7f7ad734f 2009-12-01 Atsushi Enomoto <[email protected]>
* Atom10ItemFormatter.cs, Atom10FeedFormatter.cs :
	  write extensions. Patch by Tom Philpot.


svn path=/trunk/mcs/; revision=147183
2009-12-01 07:11:53 +00:00
Atsushi Eno 68d0bee223 2009-10-16 Atsushi Enomoto <[email protected]>
* Rss20FeedFormatter.cs, Rss20ItemFormatter.cs : handle other text
	  nodes than text (cdata, whitespaces etc.) and make sure to proceed
	  the reader when they are skipped. Fixed bug #546965 and #546959.


svn path=/trunk/mcs/; revision=144249
2009-10-16 03:48:53 +00:00
Atsushi Eno fd2cd12aae 2009-10-07 Atsushi Enomoto <[email protected]>
* SyndicationVersions.cs :
	  Handle atom feed as well. Patch by David Mitchell.

	* SyndicationItemTest.cs, SyndicationFeedTest.cs : allow atom feed
	  too. More Load() tests. Patch by David Mitchell.


svn path=/trunk/mcs/; revision=143704
2009-10-07 19:12:26 +00:00
Atsushi Eno 83a2cc75f8 2009-10-07 Atsushi Enomoto <[email protected]>
* SyndicationElementExtension.cs : give OuterName and OuterNamespace
	  for extensions with .ctor(XmlReader).

	* SyndicationElementExtensionTest.cs : added test for OuterName/ns
	  with .ctor(XmlReader).
	* SyndicationItemTest.cs : added failure case for LoadItem() with
	  feed element.


svn path=/trunk/mcs/; revision=143592
2009-10-07 01:51:07 +00:00
Atsushi Eno bb70572298 2009-10-05 Atsushi Enomoto <[email protected]>
* Atom10FeedFormatter.cs : do not use Atom10ItemFormatter(item)
	  at ReadItem(). It is only for writing. Patch by David Mitchell.


svn path=/trunk/mcs/; revision=143369
2009-10-05 05:53:46 +00:00
Atsushi Eno 92ee4f9b55 2009-10-05 Atsushi Enomoto <[email protected]>
* Atom10ItemFormatter.cs : enable XmlConvert.ToDateTimeOffset(),
	  patch by David Mitchell.


svn path=/trunk/mcs/; revision=143368
2009-10-05 05:37:54 +00:00
Atsushi Eno 0431791d2b 2009-09-15 Atsushi Enomoto <[email protected]>
* SyndicationElementExtension.cs : make it ready for 2.1 build.


svn path=/trunk/mcs/; revision=141983
2009-09-15 18:58:08 +00:00
Atsushi Eno 39fa97993e 2009-09-07 Atsushi Enomoto <[email protected]>
* Rss20FeedFormatter.cs, CategoriesDocument.cs,
	  AtomPub10ServiceDocumentFormatter_1.cs,
	  AtomPub10CategoriesDocumentFormatter.cs,
	  AtomPub10ServiceDocumentFormatter.cs : a couple of corcompare fixes.


svn path=/trunk/mcs/; revision=141401
2009-09-07 04:55:14 +00:00
Atsushi Eno a7cbc14542 2009-04-15 Atsushi Enomoto <[email protected]>
* ServiceDocument.cs : remove Utility class. It is not precise
	  implementation to write extensions.
	* ServiceDocumentFormatter.cs : virtual extension writer methods
	  should call possibly overriden Write[Element/Attribute]Extensions()
	  in possibly derived document item classes.
	  Implemented LoadElementExtensions().
	* AtomPub10CategoriesDocumentFormatter.cs,
	  AtomPub10ServiceDocumentFormatter.cs : Implemented GetSchema().

	* AtomPub10CategoriesDocumentFormatterTest.cs,
	  AtomPub10ServiceDocumentFormatterTest.cs : aded GetSchema() and
	  WriteElementExtensions() tests.


svn path=/trunk/mcs/; revision=131737
2009-04-15 08:18:12 +00:00
Atsushi Eno 7dd3ce9331 2009-04-06 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  Workspace.cs
	  Atom10FeedFormatter.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : implemented most of reader parts.

	* AtomPub10ServiceDocumentFormatterTest.cs : add ReadFrom() test.


svn path=/trunk/mcs/; revision=131133
2009-04-06 16:43:50 +00:00
Atsushi Eno b3852bc8a5 2009-04-06 Atsushi Enomoto <[email protected]>
* Workspace.cs, ResourceCollectionInfo.cs,
	  CategoriesDocument.cs, ServiceDocument.cs : use common internal
	  SyndicationExtension class for extensions.


svn path=/trunk/mcs/; revision=131111
2009-04-06 12:37:50 +00:00
Atsushi Eno 3d7552a35f 2009-04-06 Atsushi Enomoto <[email protected]>
* AtomPub10CategoriesDocumentFormatter.cs, Atom10FeedFormatter.cs,
	  CategoriesDocument.cs : ongoing implementation (handle categories).

	* AtomPub10CategoriesDocumentFormatterTest.cs : new test.
	* AtomPub10ServiceDocumentFormatterTest.cs : add reader tests.

	* System.ServiceModel.Web_test.dll.sources : added
	  AtomPub10CategoriesDocumentFormatterTest.


svn path=/trunk/mcs/; revision=131105
2009-04-06 10:37:45 +00:00
Atsushi Eno 44bbb1719b 2009-04-03 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  Workspace.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : ongoing implementation.

	* System.ServiceModel.Web_test.dll.sources : added
	  ServiceDocumentTest and AtomPub10ServiceDocumentFormatterTest.


svn path=/trunk/mcs/; revision=130991
2009-04-03 17:35:11 +00:00
Atsushi Eno dedaea465d add MIT lines.
svn path=/trunk/mcs/; revision=130955
2009-04-03 09:23:11 +00:00
Atsushi Eno 65d54b9889 2009-04-03 Atsushi Enomoto <[email protected]>
* ServiceDocumentFormatter.cs
	  InlineCategoriesDocument.cs
	  AtomPub10ServiceDocumentFormatter_1.cs
	  Workspace.cs
	  AtomPub10CategoriesDocumentFormatter.cs
	  ReferencedCategoriesDocument.cs
	  CategoriesDocumentFormatter.cs
	  AtomPub10ServiceDocumentFormatter.cs
	  ResourceCollectionInfo.cs
	  CategoriesDocument.cs
	  ServiceDocument.cs : stubs (new in 3.5 SP1).

	* System.ServiceModel.Web.dll.sources : added 3.5 SP1 atompp stuff.


svn path=/trunk/mcs/; revision=130946
2009-04-03 08:20:01 +00:00
Jb Evain 982e3b35a4 move to from olive to mcs
svn path=/trunk/mcs/; revision=111188
2008-08-20 21:25:05 +00:00