Charly 895efb2682 -initial commit
-fixed: made original version work in console
-added: MVC WebApi Controller based server
-changed: modification needeed to make it work with Train2B
2016-10-03 09:55:15 +02:00

36 lines
1018 B
C#

using System;
namespace WebDAVSharp.Server.Stores.BaseClasses {
/// <summary>
/// This class is a base class for <see cref="IWebDavStore" /> implementations.
/// </summary>
public abstract class WebDavStoreBase : IWebDavStore {
private readonly IWebDavStoreCollection _root;
/// <summary>
/// Initializes a new instance of the <see cref="WebDavStoreBase" /> class.
/// </summary>
/// <param name="root">The root <see cref="IWebDavStoreCollection" />.</param>
/// <exception cref="System.ArgumentNullException">root</exception>
/// <exception cref="ArgumentNullException"><paramref name="root" /> is <c>null</c>.</exception>
protected WebDavStoreBase(IWebDavStoreCollection root) {
if (root == null)
throw new ArgumentNullException("root");
_root = root;
}
#region IWebDAVStore Members
/// <summary>
/// Gets the root collection of this <see cref="IWebDavStore" />.
/// </summary>
public IWebDavStoreCollection Root {
get {
return _root;
}
}
#endregion
}
}