aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.Burn/BurnExtensionFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.Burn/BurnExtensionFactory.cs')
-rw-r--r--src/WixToolset.Core.Burn/BurnExtensionFactory.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Burn/BurnExtensionFactory.cs b/src/WixToolset.Core.Burn/BurnExtensionFactory.cs
new file mode 100644
index 00000000..b34d12c1
--- /dev/null
+++ b/src/WixToolset.Core.Burn/BurnExtensionFactory.cs
@@ -0,0 +1,22 @@
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.Core.Burn
4{
5 using System;
6 using WixToolset.Extensibility;
7
8 internal class BurnExtensionFactory : IExtensionFactory
9 {
10 public bool TryCreateExtension(Type extensionType, out object extension)
11 {
12 extension = null;
13
14 if (extensionType == typeof(IBackendFactory))
15 {
16 extension = new BurnBackendFactory();
17 }
18
19 return extension != null;
20 }
21 }
22}