Class WebDavXmlOutputFormatter
The default implementation of the IWebDavOutputFormatter interface
Inherited Members
Namespace:FubarDev.WebDavServer.Formatters
Assembly:FubarDev.WebDavServer.dll
Syntax
public class WebDavXmlOutputFormatter : IWebDavOutputFormatter
Constructors
| Improve this Doc View SourceWebDavXmlOutputFormatter(IOptions<WebDavFormatterOptions>, ILogger<WebDavXmlOutputFormatter>)
Initializes a new instance of the WebDavXmlOutputFormatter class.
Declaration
public WebDavXmlOutputFormatter([NotNull] IOptions<WebDavFormatterOptions> options, [NotNull] ILogger<WebDavXmlOutputFormatter> logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<WebDavFormatterOptions> | options | The formatter options |
Microsoft.Extensions.Logging.ILogger<WebDavXmlOutputFormatter> | logger | The logger |
Properties
| Improve this Doc View SourceContentType
Gets the content type
Declaration
[NotNull]
public string ContentType { get; }
Property Value
Type | Description |
---|---|
String |
Implements
| Improve this Doc View SourceEncoding
Gets the encoding
Declaration
[NotNull]
public Encoding Encoding { get; }
Property Value
Type | Description |
---|---|
Encoding |
Implements
Methods
| Improve this Doc View SourceSerialize<T>(Stream, T)
Declaration
public void Serialize<T>(Stream output, T data)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | |
T | data |
Type Parameters
Name | Description |
---|---|
T |