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