Skip to content

rezabazargan/xDav

Repository files navigation

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

About

A .Net Module For WebDav

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published