WebDavServer icon indicating copy to clipboard operation
WebDavServer copied to clipboard

correct document the Mount function

Open MosheL opened this issue 5 years ago • 0 comments

The mount function is working good (Thanks !). I could mount two or more file systems on the same server.

the problem: its not documented. I was found an example on your tests and make it working.

This need to be documented somewhere in google:


	fileSystem.Root.Task.ContinueWith(r =>
			{

				var root = r.Result;
				foreach (var fs in _options.Children)  // I was added to the configuration, a loop of Children-FileSystems
				{
					var q = root.GetChildAsync(fs.Key, new System.Threading.CancellationToken());
					q.ContinueWith(f =>
					{
						var mountpoint = q.Result as ICollection ;

						fileSystem.Mount(new System.Uri(fs.Key + "/", System.UriKind.Relative), new DotNetFileSystem(fs.Value, mountpoint, fs.Value.RootPath.TrimEnd('\\', '/'), _pathTraversalEngine, _lockManager, _propertyStoreFactory));
					});

			}
			}) ;

MosheL avatar May 18 '19 19:05 MosheL