Initializes a new instance of the WebDavServer class.
Namespace: WebDAVSharp.ServerAssembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- store
- Type: WebDAVSharp.Server.Stores IWebDavStore
The IWebDavStore store object that will provide collections and documents for this WebDavServer.
- listener (Optional)
- Type: WebDAVSharp.Server.Adapters IHttpListener
The IHttpListener object that will handle the web server portion of the WebDAV server; or null to use a fresh one.
- methodHandlers (Optional)
- Type: System.Collections.Generic IEnumerable IWebDavMethodHandler
A collection of HTTP method handlers to use by this WebDavServer; or null to use the built-in method handlers.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | listener is null. - or - store is null. |
ArgumentException | methodHandlers is empty. - or - methodHandlers contains a null-reference. |
See Also