From e9fea339e473e6dcc32e34e995429b41cabb6c22 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 1 Mar 2019 11:05:02 -0800 Subject: Expose only abstracts and enums from WixToolset.Extensibility --- .../Data/BindFileWithPath.cs | 20 -------- src/WixToolset.Extensibility/Data/BindPath.cs | 59 ---------------------- src/WixToolset.Extensibility/Data/BindResult.cs | 13 ----- .../Data/ComponentKeyPath.cs | 55 -------------------- .../Data/ComponentKeyPathType.cs | 37 ++++++++++++++ .../Data/DecompileResult.cs | 14 ----- .../Data/IBindFileWithPath.cs | 11 ++++ src/WixToolset.Extensibility/Data/IBindPath.cs | 22 ++++++++ src/WixToolset.Extensibility/Data/IBindResult.cs | 13 +++++ .../Data/IComponentKeyPath.cs | 13 +++++ .../Data/IDecompileResult.cs | 14 +++++ .../Data/ILibraryContext.cs | 4 +- .../Data/IResolveContext.cs | 4 +- .../Data/IResolveFileResult.cs | 13 +++++ .../Data/IResolveResult.cs | 18 +++++++ .../Data/IResolvedCabinet.cs | 11 ++++ .../Data/ResolveFileResult.cs | 13 ----- src/WixToolset.Extensibility/Data/ResolveResult.cs | 18 ------- .../Data/ResolvedCabinet.cs | 20 -------- 19 files changed, 156 insertions(+), 216 deletions(-) delete mode 100644 src/WixToolset.Extensibility/Data/BindFileWithPath.cs delete mode 100644 src/WixToolset.Extensibility/Data/BindPath.cs delete mode 100644 src/WixToolset.Extensibility/Data/BindResult.cs delete mode 100644 src/WixToolset.Extensibility/Data/ComponentKeyPath.cs create mode 100644 src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs delete mode 100644 src/WixToolset.Extensibility/Data/DecompileResult.cs create mode 100644 src/WixToolset.Extensibility/Data/IBindFileWithPath.cs create mode 100644 src/WixToolset.Extensibility/Data/IBindPath.cs create mode 100644 src/WixToolset.Extensibility/Data/IBindResult.cs create mode 100644 src/WixToolset.Extensibility/Data/IComponentKeyPath.cs create mode 100644 src/WixToolset.Extensibility/Data/IDecompileResult.cs create mode 100644 src/WixToolset.Extensibility/Data/IResolveFileResult.cs create mode 100644 src/WixToolset.Extensibility/Data/IResolveResult.cs create mode 100644 src/WixToolset.Extensibility/Data/IResolvedCabinet.cs delete mode 100644 src/WixToolset.Extensibility/Data/ResolveFileResult.cs delete mode 100644 src/WixToolset.Extensibility/Data/ResolveResult.cs delete mode 100644 src/WixToolset.Extensibility/Data/ResolvedCabinet.cs (limited to 'src/WixToolset.Extensibility/Data') diff --git a/src/WixToolset.Extensibility/Data/BindFileWithPath.cs b/src/WixToolset.Extensibility/Data/BindFileWithPath.cs deleted file mode 100644 index d65ae1ba..00000000 --- a/src/WixToolset.Extensibility/Data/BindFileWithPath.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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.Extensibility.Data -{ - /// - /// Bind file with its path. - /// - public class BindFileWithPath - { - /// - /// Gets or sets the identifier of the file with this path. - /// - public string Id { get; set; } - - /// - /// Gets or sets the file path. - /// - public string Path { get; set; } - } -} diff --git a/src/WixToolset.Extensibility/Data/BindPath.cs b/src/WixToolset.Extensibility/Data/BindPath.cs deleted file mode 100644 index 3b0b73bb..00000000 --- a/src/WixToolset.Extensibility/Data/BindPath.cs +++ /dev/null @@ -1,59 +0,0 @@ -// 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.Extensibility.Data -{ - using System; - - /// - /// Bind path representation. - /// - public class BindPath - { - /// - /// Creates an unnamed bind path. - /// - /// Path for the bind path. - public BindPath(string path) : this(String.Empty, path, BindStage.Normal) - { - } - - /// - /// Creates a named bind path. - /// - /// Name of the bind path. - /// Path for the bind path. - /// Stage for the bind path. - public BindPath(string name, string path, BindStage stage = BindStage.Normal) - { - this.Name = name; - this.Path = path; - this.Stage = stage; - } - - /// - /// Name of the bind path or String.Empty if the path is unnamed. - /// - public string Name { get; set; } - - /// - /// Path for the bind path. - /// - public string Path { get; set; } - - /// - /// Stage for the bind path. - /// - public BindStage Stage { get; set; } - - /// - /// Parses a normal bind path from its string representation - /// - /// String representation of bind path that looks like: [name=]path - /// Parsed normal bind path. - public static BindPath Parse(string bindPath) - { - string[] namedPath = bindPath.Split(new char[] { '=' }, 2); - return (1 == namedPath.Length) ? new BindPath(namedPath[0]) : new BindPath(namedPath[0], namedPath[1]); - } - } -} diff --git a/src/WixToolset.Extensibility/Data/BindResult.cs b/src/WixToolset.Extensibility/Data/BindResult.cs deleted file mode 100644 index e467d269..00000000 --- a/src/WixToolset.Extensibility/Data/BindResult.cs +++ /dev/null @@ -1,13 +0,0 @@ -// 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.Extensibility.Data -{ - using System.Collections.Generic; - - public class BindResult - { - public IEnumerable FileTransfers { get; set; } - - public IEnumerable TrackedFiles { get; set; } - } -} diff --git a/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs b/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs deleted file mode 100644 index 112f562c..00000000 --- a/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs +++ /dev/null @@ -1,55 +0,0 @@ -// 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.Extensibility.Data -{ - public enum ComponentKeyPathType - { - /// - /// Not a key path. - /// - None, - - /// - /// File resource as a key path. - /// - File, - - /// - /// Folder as a key path. - /// - Directory, - - /// - /// ODBC data source as a key path. - /// - OdbcDataSource, - - /// - /// A simple registry key acting as a key path. - /// - Registry, - - /// - /// A registry key that contains a formatted property acting as a key path. - /// - RegistryFormatted - } - - public class ComponentKeyPath - { - /// - /// Identifier of the resource to be a key path. - /// - public string Id { get; set; } - - /// - /// Indicates whether the key path was explicitly set for this resource. - /// - public bool Explicit { get; set; } - - /// - /// Type of resource to be the key path. - /// - public ComponentKeyPathType Type { get; set; } - } -} diff --git a/src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs b/src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs new file mode 100644 index 00000000..58bbb0cf --- /dev/null +++ b/src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs @@ -0,0 +1,37 @@ +// 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.Extensibility.Data +{ + public enum ComponentKeyPathType + { + /// + /// Not a key path. + /// + None, + + /// + /// File resource as a key path. + /// + File, + + /// + /// Folder as a key path. + /// + Directory, + + /// + /// ODBC data source as a key path. + /// + OdbcDataSource, + + /// + /// A simple registry key acting as a key path. + /// + Registry, + + /// + /// A registry key that contains a formatted property acting as a key path. + /// + RegistryFormatted + } +} diff --git a/src/WixToolset.Extensibility/Data/DecompileResult.cs b/src/WixToolset.Extensibility/Data/DecompileResult.cs deleted file mode 100644 index 27706b2c..00000000 --- a/src/WixToolset.Extensibility/Data/DecompileResult.cs +++ /dev/null @@ -1,14 +0,0 @@ -// 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.Extensibility.Data -{ - using System.Collections.Generic; - using System.Xml.Linq; - - public class DecompileResult - { - public XDocument Document { get; set; } - - public IEnumerable ExtractedFilePaths { get; set; } - } -} diff --git a/src/WixToolset.Extensibility/Data/IBindFileWithPath.cs b/src/WixToolset.Extensibility/Data/IBindFileWithPath.cs new file mode 100644 index 00000000..ec78a1a0 --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IBindFileWithPath.cs @@ -0,0 +1,11 @@ +// 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.Extensibility.Data +{ + public interface IBindFileWithPath + { + string Id { get; set; } + + string Path { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/IBindPath.cs b/src/WixToolset.Extensibility/Data/IBindPath.cs new file mode 100644 index 00000000..5784a0e0 --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IBindPath.cs @@ -0,0 +1,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 WixToolset.Extensibility.Data +{ + public interface IBindPath + { + /// + /// Name of the bind path or String.Empty if the path is unnamed. + /// + string Name { get; set; } + + /// + /// Path for the bind path. + /// + string Path { get; set; } + + /// + /// Stage for the bind path. + /// + BindStage Stage { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/IBindResult.cs b/src/WixToolset.Extensibility/Data/IBindResult.cs new file mode 100644 index 00000000..d35e7628 --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IBindResult.cs @@ -0,0 +1,13 @@ +// 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.Extensibility.Data +{ + using System.Collections.Generic; + + public interface IBindResult + { + IEnumerable FileTransfers { get; set; } + + IEnumerable TrackedFiles { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/IComponentKeyPath.cs b/src/WixToolset.Extensibility/Data/IComponentKeyPath.cs new file mode 100644 index 00000000..ba660b45 --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IComponentKeyPath.cs @@ -0,0 +1,13 @@ +// 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.Extensibility.Data +{ + public interface IComponentKeyPath + { + bool Explicit { get; set; } + + string Id { get; set; } + + ComponentKeyPathType Type { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/IDecompileResult.cs b/src/WixToolset.Extensibility/Data/IDecompileResult.cs new file mode 100644 index 00000000..ea993cb2 --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IDecompileResult.cs @@ -0,0 +1,14 @@ +// 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.Extensibility.Data +{ + using System.Collections.Generic; + using System.Xml.Linq; + + public interface IDecompileResult + { + XDocument Document { get; set; } + + IEnumerable ExtractedFilePaths { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/ILibraryContext.cs b/src/WixToolset.Extensibility/Data/ILibraryContext.cs index 08b4ed26..9b65ebfd 100644 --- a/src/WixToolset.Extensibility/Data/ILibraryContext.cs +++ b/src/WixToolset.Extensibility/Data/ILibraryContext.cs @@ -1,4 +1,4 @@ -// 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. +// 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.Extensibility.Data { @@ -12,7 +12,7 @@ namespace WixToolset.Extensibility.Data bool BindFiles { get; set; } - IEnumerable BindPaths { get; set; } + IEnumerable BindPaths { get; set; } IEnumerable Extensions { get; set; } diff --git a/src/WixToolset.Extensibility/Data/IResolveContext.cs b/src/WixToolset.Extensibility/Data/IResolveContext.cs index 0e12a534..68a50268 100644 --- a/src/WixToolset.Extensibility/Data/IResolveContext.cs +++ b/src/WixToolset.Extensibility/Data/IResolveContext.cs @@ -1,4 +1,4 @@ -// 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. +// 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.Extensibility.Data { @@ -11,7 +11,7 @@ namespace WixToolset.Extensibility.Data { IServiceProvider ServiceProvider { get; } - IEnumerable BindPaths { get; set; } + IEnumerable BindPaths { get; set; } IEnumerable Extensions { get; set; } diff --git a/src/WixToolset.Extensibility/Data/IResolveFileResult.cs b/src/WixToolset.Extensibility/Data/IResolveFileResult.cs new file mode 100644 index 00000000..bf0af72e --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IResolveFileResult.cs @@ -0,0 +1,13 @@ +// 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.Extensibility.Data +{ + using System.Collections.Generic; + + public interface IResolveFileResult + { + IEnumerable CheckedPaths { get; set; } + + string Path { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/IResolveResult.cs b/src/WixToolset.Extensibility/Data/IResolveResult.cs new file mode 100644 index 00000000..87b9c573 --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IResolveResult.cs @@ -0,0 +1,18 @@ +// 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.Extensibility.Data +{ + using System.Collections.Generic; + using WixToolset.Data; + + public interface IResolveResult + { + int Codepage { get; set; } + + IEnumerable DelayedFields { get; set; } + + IEnumerable ExpectedEmbeddedFiles { get; set; } + + Intermediate IntermediateRepresentation { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/IResolvedCabinet.cs b/src/WixToolset.Extensibility/Data/IResolvedCabinet.cs new file mode 100644 index 00000000..c94ff8db --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IResolvedCabinet.cs @@ -0,0 +1,11 @@ +// 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.Extensibility.Data +{ + public interface IResolvedCabinet + { + CabinetBuildOption BuildOption { get; set; } + + string Path { get; set; } + } +} diff --git a/src/WixToolset.Extensibility/Data/ResolveFileResult.cs b/src/WixToolset.Extensibility/Data/ResolveFileResult.cs deleted file mode 100644 index 5ac7c426..00000000 --- a/src/WixToolset.Extensibility/Data/ResolveFileResult.cs +++ /dev/null @@ -1,13 +0,0 @@ -// 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.Extensibility.Data -{ - using System.Collections.Generic; - - public class ResolveFileResult - { - public string Path { get; set; } - - public IEnumerable CheckedPaths { get; set; } - } -} \ No newline at end of file diff --git a/src/WixToolset.Extensibility/Data/ResolveResult.cs b/src/WixToolset.Extensibility/Data/ResolveResult.cs deleted file mode 100644 index cdc9cfcc..00000000 --- a/src/WixToolset.Extensibility/Data/ResolveResult.cs +++ /dev/null @@ -1,18 +0,0 @@ -// 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.Extensibility.Data -{ - using System.Collections.Generic; - using WixToolset.Data; - - public class ResolveResult - { - public int Codepage { get; set; } - - public IEnumerable DelayedFields { get; set; } - - public IEnumerable ExpectedEmbeddedFiles { get; set; } - - public Intermediate IntermediateRepresentation { get; set; } - } -} \ No newline at end of file diff --git a/src/WixToolset.Extensibility/Data/ResolvedCabinet.cs b/src/WixToolset.Extensibility/Data/ResolvedCabinet.cs deleted file mode 100644 index 047b7448..00000000 --- a/src/WixToolset.Extensibility/Data/ResolvedCabinet.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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.Extensibility.Data -{ - /// - /// Data returned from build file manager ResolveCabinet callback. - /// - public class ResolvedCabinet - { - /// - /// Gets or sets the build option for the resolved cabinet. - /// - public CabinetBuildOption BuildOption { get; set; } - - /// - /// Gets or sets the path for the resolved cabinet. - /// - public string Path { get; set; } - } -} -- cgit v1.2.3-55-g6feb