summaryrefslogtreecommitdiff
path: root/src/test/burn/WixToolsetTest.BurnE2E/IWebServer.cs
blob: 3846ae940cc81272f7fb01b521a84dbc075f4190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.

namespace WixToolsetTest.BurnE2E
{
    using System;
    using System.Collections.Generic;

    public interface IWebServer : IDisposable
    {
        bool DisableHeadResponses { get; set; }

        /// <summary>
        /// Registers a collection of relative URLs (the key) with its absolute path to the file (the value).
        /// </summary>
        void AddFiles(Dictionary<string, string> physicalPathsByRelativeUrl);

        /// <summary>
        /// Starts the web server on a new thread.
        /// </summary>
        void Start();
    }
}