From a39985db85c67a8f5229767bb9ba34aaa26edd65 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 26 Jul 2018 23:49:18 -0700 Subject: Expose FileTransfer as interface This reduces the code in Extensiblity which is always a good thing. --- .../Services/IBackendHelper.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/WixToolset.Extensibility/Services/IBackendHelper.cs (limited to 'src/WixToolset.Extensibility/Services') diff --git a/src/WixToolset.Extensibility/Services/IBackendHelper.cs b/src/WixToolset.Extensibility/Services/IBackendHelper.cs new file mode 100644 index 00000000..83f57e35 --- /dev/null +++ b/src/WixToolset.Extensibility/Services/IBackendHelper.cs @@ -0,0 +1,23 @@ +// 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.Services +{ + using WixToolset.Data; + using WixToolset.Extensibility.Data; + + /// + /// Interface provided to help backend extensions. + /// + public interface IBackendHelper + { + /// + /// Creates a file transfer and marks it redundant if the source and destination are identical. + /// + /// Source for the file transfer. + /// Destiation for the file transfer. + /// Indicates whether to move or copy the source file. + /// Type of file transfer to create. + /// Optional source line numbers that requested the file transfer. + IFileTransfer CreateFileTransfer(string source, string destination, bool move, FileTransferType type, SourceLineNumber sourceLineNumbers = null); + } +} -- cgit v1.2.3-55-g6feb