aboutsummaryrefslogtreecommitdiff
path: root/src/wix/WixToolset.Core/LibraryContext.cs
blob: e701cadf2154bd5c4131a9951e2e3bd31377fb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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 WixToolset.Core
{
    using System;
    using System.Collections.Generic;
    using System.Threading;
    using WixToolset.Data;
    using WixToolset.Extensibility;
    using WixToolset.Extensibility.Data;
    using WixToolset.Extensibility.Services;

    internal class LibraryContext : ILibraryContext
    {
        internal LibraryContext(IServiceProvider serviceProvider)
        {
            this.ServiceProvider = serviceProvider;
        }

        public IServiceProvider ServiceProvider { get; }

        public IMessaging Messaging { get; set; }

        public bool BindFiles { get; set; }

        public IReadOnlyCollection<IBindPath> BindPaths { get; set; }

        public IReadOnlyCollection<ILibrarianExtension> Extensions { get; set; }

        public string LibraryId { get; set; }

        public IReadOnlyCollection<Localization> Localizations { get; set; }

        public IReadOnlyCollection<Intermediate> Intermediates { get; set; }

        public CancellationToken CancellationToken { get; set; }
    }
}