Class WebDavResult<T>
Gets the WebDAV result with a value to be returned in the response body
Inherited Members
Namespace:FubarDev.WebDavServer
Assembly:FubarDev.WebDavServer.dll
Syntax
public class WebDavResult<T> : WebDavResult, IWebDavResult
Type Parameters
Name | Description |
---|---|
T | The type of the value to be serialized as response body |
Constructors
| Improve this Doc View SourceWebDavResult(WebDavStatusCode, T)
Initializes a new instance of the WebDavResult<T> class.
Declaration
public WebDavResult(WebDavStatusCode statusCode, T data)
Parameters
Type | Name | Description |
---|---|---|
WebDavStatusCode | statusCode | The WebDAV status code |
T | data | The data to be returned in the response body |
Properties
| Improve this Doc View SourceData
Gets the data to be returned in the response body
Declaration
public T Data { get; }
Property Value
Type | Description |
---|---|
T |
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 |