main
cs 48 lines 1.35 KB
Raw
1 // 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.
2
3 namespace WixToolset.Core
4 {
5 using System;
6 using System.Collections.Generic;
7 using WixToolset.Data;
8 using WixToolset.Extensibility.Data;
9
10 internal class BindResult : IBindResult
11 {
12 private bool disposed;
13
14 public IReadOnlyCollection<IFileTransfer> FileTransfers { get; set; }
15
16 public IReadOnlyCollection<ITrackedFile> TrackedFiles { get; set; }
17
18 public WixOutput Wixout { get; set; }
19
20 #region IDisposable Support
21 /// <summary>
22 /// Disposes of the internal state of the file structure.
23 /// </summary>
24 public void Dispose()
25 {
26 this.Dispose(true);
27 GC.SuppressFinalize(this);
28 }
29
30 /// <summary>
31 /// Disposes of the internsl state of the file structure.
32 /// </summary>
33 /// <param name="disposing">True if disposing.</param>
34 protected virtual void Dispose(bool disposing)
35 {
36 if (!this.disposed)
37 {
38 if (disposing)
39 {
40 this.Wixout?.Dispose();
41 }
42 }
43
44 this.disposed = true;
45 }
46 #endregion
47 }
48 }