コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropfindParameters"/> class.
 /// </summary>
 public PropfindParameters()
 {
     RequestType      = PropfindRequestType.AllProperties;
     CustomProperties = new List <XName>();
     Namespaces       = new List <NamespaceAttr>();
     Headers          = new HttpHeaderCollection();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProppatchParameters"/> class.
 /// </summary>
 public ProppatchParameters()
 {
     PropertiesToSet    = new Dictionary <XName, string>();
     PropertiesToRemove = new List <XName>();
     Namespaces         = new List <NamespaceAttr>();
     Headers            = new HttpHeaderCollection();
 }
コード例 #3
0
        public HeaderBuilder AddWithOverwrite(HttpHeaderCollection headers)
        {
            var headers1 = headers.ToArray();

            foreach (var header in headers1)
            {
                _headers.RemoveAll(x => x.Name.Equals(header.Name, StringComparison.CurrentCultureIgnoreCase));
            }
            _headers.AddRange(headers1);
            return(this);
        }
コード例 #4
0
 public WebDavDispatcher()
 {
     Headers = new HttpHeaderCollection();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LockParameters"/> class.
 /// </summary>
 public LockParameters()
 {
     Headers = new HttpHeaderCollection();
 }