Class WebDavXmlResult
A WebDAV result returning an XElement in the response body
Inherited Members
Namespace:FubarDev.WebDavServer
Assembly:FubarDev.WebDavServer.dll
Syntax
public class WebDavXmlResult : WebDavResult, IWebDavResult
Constructors
| Improve this Doc View SourceWebDavXmlResult(WebDavStatusCode, XElement)
Initializes a new instance of the WebDavXmlResult class.
Declaration
public WebDavXmlResult(WebDavStatusCode statusCode, [NotNull] XElement element)
Parameters
Type | Name | Description |
---|---|---|
WebDavStatusCode | statusCode | The WebDAV status code |
XElement | element | The element to be serialized as the response body |
Methods
| Improve this Doc View SourceExecuteResultAsync(IWebDavResponse, CancellationToken)
Writes the result to a response
Declaration
public override Task ExecuteResultAsync(IWebDavResponse response, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
IWebDavResponse | response | The response object to write to |
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task | The async task |