A .Net Module For WebDav
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sphorium.WebDAV.Server.Framework
XDav.Example
XDav
packages
.gitignore
README.md
XDav.sln
XDav.v12.suo

README.md

xDav

xDav is .net server mudole for webdav standard . its allow you to handle your webdav requests easily

you can get the a liberary and webconfig settings from nuget:

PM> Install-Package xDav

after installin that package your web.config has changed

  <configSections>
    <section name="XDavConfig" type="XDav.Config.XDavConfig, XDav" allowLocation="true" allowDefinition="Everywhere"/>
  </configSections>

this is the config section, and doesn't need any changes

  <system.webServer>
    <modules>
      <add name="XDav" type="XDav.XDavModule, XDav"/>
    </modules>
  </system.webServer>

it contains Adding xDav HttlModule and no need any changes

  <XDavConfig Name="xdav">
    <FileLocation URL="xdav" PathType="Local"></FileLocation>
  </XDavConfig>

the "Name" means is when your request contans "/xdav/" [ value of "Name"], this request handled by xDav

FileLocationURL : when you use Local as "PathType" it means you have a folder with "URL" property name in your web root, and when you user Server as "PathType" it means you entered a physical address like "c:\webdav" in "URL" Property, and this folder includes your files.

Events

you can Add a class and call it on your Global.ascx like :

XdavConfig.Register();

and this file contains this section :

public class XdavConfig
    {
        public static void Register()
        {
            XDavSettings.Events(e => {
                e.OnProcessing(evt =>
                {
                    // Do this if you want cancel xdav process
                    //evt.CancelProcess();
                })
                .OnProcessed(evt =>
                {

                })
                .OnException(ex => { 

                });
            });
        }
    }

you can find a persian Article Here


Reza Bazargan