Show / Hide Table of Contents

Class WebDavResult

The result of a WebDAV operation

Inheritance
Object
WebDavResult
WebDavResult<T>
WebDavXmlResult
Inherited Members
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 : IWebDavResult

Constructors

| Improve this Doc View Source

WebDavResult(WebDavStatusCode)

Initializes a new instance of the WebDavResult class.

Declaration
public WebDavResult(WebDavStatusCode statusCode)
Parameters
Type Name Description
WebDavStatusCode statusCode

The WebDAV status code

Properties

| Improve this Doc View Source

Headers

Gets the header values to be set for the response

Declaration
public Dictionary<string, IEnumerable<string>> Headers { get; }
Property Value
Type Description
Dictionary<String, IEnumerable<String>>
| Improve this Doc View Source

StatusCode

Gets the WebDAV status code

Declaration
public WebDavStatusCode StatusCode { get; }
Property Value
Type Description
WebDavStatusCode
Implements
IWebDavResult.StatusCode

Methods

| Improve this Doc View Source

AddHeaderValues(IImmutableDictionary<String, IEnumerable<String>>, IReadOnlyDictionary<String, IEnumerable<String>>)

Adds header values to the current header dictionary

Declaration
protected IImmutableDictionary<string, IEnumerable<string>> AddHeaderValues(IImmutableDictionary<string, IEnumerable<string>> currentHeaders, IReadOnlyDictionary<string, IEnumerable<string>> headersToAdd)
Parameters
Type Name Description
System.Collections.Immutable.IImmutableDictionary<String, IEnumerable<String>> currentHeaders

The current header dictionary

IReadOnlyDictionary<String, IEnumerable<String>> headersToAdd

The headers to add

Returns
Type Description
System.Collections.Immutable.IImmutableDictionary<String, IEnumerable<String>>

The updated header dictionary

| Improve this Doc View Source

ExecuteResultAsync(IWebDavResponse, CancellationToken)

Writes the result to a response

Declaration
public virtual 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

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