Show / Hide Table of Contents

Class WebDavResult<T>

Gets the WebDAV result with a value to be returned in the response body

Inheritance
Object
WebDavResult
WebDavResult<T>
Inherited Members
WebDavResult.StatusCode
WebDavResult.Headers
WebDavResult.AddHeaderValues(IImmutableDictionary<String, IEnumerable<String>>, IReadOnlyDictionary<String, IEnumerable<String>>)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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 Source

WebDavResult(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 Source

Data

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 Source

ExecuteResultAsync(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

Overrides
WebDavResult.ExecuteResultAsync(IWebDavResponse, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX