using System;
using System.Net;
using System.Security.Principal;
namespace WebDAVSharp.Server.Adapters
{
///
/// This is an interface-version of the parts of
/// that
/// the
/// requires to operator.
///
///
/// The main purpose of this interface is to facilitate unit-testing.
///
public interface IHttpListener : IAdapter, IDisposable
{
///
/// Gets the Uniform Resource Identifier (
/// ) prefixes handled by the
/// adapted
/// object.
///
///
/// The prefixes.
///
HttpListenerPrefixCollection Prefixes { get; }
///
/// Allows the adapted to receive incoming requests.
///
void Start();
///
/// Causes the adapted to stop receiving incoming requests.
///
void Stop();
///
/// Returns the windows Idenity to use for the request.
///
///
///
IIdentity GetIdentity(IHttpListenerContext context);
}
}