aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/Services/IBackendHelper.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-07-26 23:49:18 -0700
committerRob Mensching <rob@firegiant.com>2018-07-26 23:49:18 -0700
commita39985db85c67a8f5229767bb9ba34aaa26edd65 (patch)
tree0a7f132604e79dde394a239d164570c0d9453094 /src/WixToolset.Extensibility/Services/IBackendHelper.cs
parent59e0fda78f52bc34250a84be59c24d2588a8ea45 (diff)
downloadwix-a39985db85c67a8f5229767bb9ba34aaa26edd65.tar.gz
wix-a39985db85c67a8f5229767bb9ba34aaa26edd65.tar.bz2
wix-a39985db85c67a8f5229767bb9ba34aaa26edd65.zip
Expose FileTransfer as interface
This reduces the code in Extensiblity which is always a good thing.
Diffstat (limited to 'src/WixToolset.Extensibility/Services/IBackendHelper.cs')
-rw-r--r--src/WixToolset.Extensibility/Services/IBackendHelper.cs23
1 files changed, 23 insertions, 0 deletions
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 @@
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
3namespace WixToolset.Extensibility.Services
4{
5 using WixToolset.Data;
6 using WixToolset.Extensibility.Data;
7
8 /// <summary>
9 /// Interface provided to help backend extensions.
10 /// </summary>
11 public interface IBackendHelper
12 {
13 /// <summary>
14 /// Creates a file transfer and marks it redundant if the source and destination are identical.
15 /// </summary>
16 /// <param name="source">Source for the file transfer.</param>
17 /// <param name="destination">Destiation for the file transfer.</param>
18 /// <param name="move">Indicates whether to move or copy the source file.</param>
19 /// <param name="type">Type of file transfer to create.</param>
20 /// <param name="sourceLineNumbers">Optional source line numbers that requested the file transfer.</param>
21 IFileTransfer CreateFileTransfer(string source, string destination, bool move, FileTransferType type, SourceLineNumber sourceLineNumbers = null);
22 }
23}