aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/BindResult.cs
blob: 4edade7a71d1a22576553d2e5d1942427ca1223d (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
39
40
41
42
43
44
45
46
47
48
// 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 WixToolset.Data;
    using WixToolset.Extensibility.Data;

    internal class BindResult : IBindResult
    {
        private bool disposed;

        public IEnumerable<IFileTransfer> FileTransfers { get; set; }

        public IEnumerable<ITrackedFile> TrackedFiles { get; set; }

        public WixOutput Wixout { get; set; }

        #region IDisposable Support
        /// <summary>
        /// Disposes of the internal state of the file structure.
        /// </summary>
        public void Dispose()
        {
            this.Dispose(true);
            GC.SuppressFinalize(this);
        }

        /// <summary>
        /// Disposes of the internsl state of the file structure.
        /// </summary>
        /// <param name="disposing">True if disposing.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    this.Wixout?.Dispose();
                }
            }

            this.disposed = true;
        }
        #endregion
    }
}