Files
mono/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/ServiceDocument.cs
T
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

100 lines
2.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Xml;
namespace System.ServiceModel.Syndication
{
public class ServiceDocument
{
[MonoTODO]
public static TServiceDocument Load<TServiceDocument> (XmlReader reader)
where TServiceDocument : ServiceDocument, new()
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ServiceDocument Load (XmlReader reader)
{
throw new NotImplementedException ();
}
public ServiceDocument ()
{
AttributeExtensions = new Dictionary<XmlQualifiedName, string> ();
ElementExtensions = new SyndicationElementExtensionCollection ();
Workspaces = new Collection<Workspace> ();
}
public ServiceDocument (IEnumerable<Workspace> workspaces)
: this ()
{
if (workspaces == null)
throw new ArgumentNullException ("workspaces");
foreach (var w in workspaces)
Workspaces.Add (w);
}
ServiceDocumentFormatter formatter;
public Dictionary<XmlQualifiedName, string> AttributeExtensions { get; private set; }
public Uri BaseUri { get; set; }
public SyndicationElementExtensionCollection ElementExtensions { get; private set; }
public string Language { get; set; }
public Collection<Workspace> Workspaces { get; private set; }
protected internal virtual Workspace CreateWorkspace ()
{
return new Workspace ();
}
public ServiceDocumentFormatter GetFormatter ()
{
if (formatter == null)
formatter = new AtomPub10ServiceDocumentFormatter (this);
return formatter;
}
[MonoTODO]
public void Save (XmlWriter writer)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected internal virtual bool TryParseAttribute (string name, string ns, string value, string version)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected internal virtual bool TryParseElement (XmlReader reader, string version)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected internal virtual void WriteAttributeExtensions (XmlWriter writer, string version)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected internal virtual void WriteElementExtensions (XmlWriter writer, string version)
{
throw new NotImplementedException ();
}
}
}