/// <summary>
 /// Sets the base path on the disk to the files
 /// </summary>
 /// <param name="rootPath"></param>
 public static void Configure(string rootPath)
 {
     _rootPath = rootPath;
     _store = new WebDavDiskStore(rootPath);
     _requestProcessor = new WebDavRequestProcessor(_store);
     _isConfigured = true;
 }
Esempio n. 2
0
 /// <summary>
 /// Starts the server.
 /// Authentication used: Negotiate
 /// </summary>
 private static void StartServer()
 {
     IWebDavStoreItemLock lockSystem = new WebDavStoreItemLock();
     IWebDavStore store = new WebDavDiskStore(Localpath, lockSystem);
     WebDavServer server = new WebDavServer(ref store);
     server.Start(Url);
 }