2 instantiations of ServiceDocument
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
161return new ServiceDocument();
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (1)
312protected virtual ServiceDocument CreateDocumentInstance() => new ServiceDocument();
28 references to ServiceDocument
System.ServiceModel (1)
netstandard.cs (1)
254[assembly: TypeForwardedTo(typeof(ServiceDocument))]
System.ServiceModel.Syndication (26)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (11)
21public AtomPub10ServiceDocumentFormatter() : this(typeof(ServiceDocument)) 32if (!typeof(ServiceDocument).IsAssignableFrom(documentTypeToCreate)) 34throw new ArgumentException(SR.Format(SR.InvalidObjectTypePassed, nameof(documentTypeToCreate), nameof(ServiceDocument)), nameof(documentTypeToCreate)); 41public AtomPub10ServiceDocumentFormatter(ServiceDocument documentToWrite) : base(documentToWrite) 157protected override ServiceDocument CreateDocumentInstance() 159if (_documentType == typeof(ServiceDocument)) 165return (ServiceDocument)Activator.CreateInstance(_documentType); 429ServiceDocument result = CreateDocumentInstance(); 504private Workspace ReadWorkspace(XmlReader reader, ServiceDocument document) 636public class AtomPub10ServiceDocumentFormatter<TServiceDocument> : AtomPub10ServiceDocumentFormatter where TServiceDocument : ServiceDocument, new() 646protected override ServiceDocument CreateDocumentInstance() => new TServiceDocument();
System\ServiceModel\Syndication\ServiceDocument.cs (3)
44public static ServiceDocument Load(XmlReader reader) 46return Load<ServiceDocument>(reader); 49public static TServiceDocument Load<TServiceDocument>(XmlReader reader) where TServiceDocument : ServiceDocument, new()
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (12)
13private ServiceDocument _document; 19protected ServiceDocumentFormatter(ServiceDocument documentToWrite) 29public ServiceDocument Document => _document; 61internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, ServiceDocument document) 102protected static Workspace CreateWorkspace(ServiceDocument document) 142protected static void LoadElementExtensions(XmlReader reader, ServiceDocument document, int maxExtensionSize) 152protected static bool TryParseAttribute(string name, string ns, string value, ServiceDocument document, string version) 202protected static bool TryParseElement(XmlReader reader, ServiceDocument document, string version) 232protected static void WriteAttributeExtensions(XmlWriter writer, ServiceDocument document, string version) 272protected static void WriteElementExtensions(XmlWriter writer, ServiceDocument document, string version) 312protected virtual ServiceDocument CreateDocumentInstance() => new ServiceDocument(); 314protected virtual void SetDocument(ServiceDocument document) => _document = document;
System.ServiceModel.Web (1)
System.ServiceModel.Web.cs (1)
24[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ServiceModel.Syndication.ServiceDocument))]