diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-12-11 19:34:47 +1100 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-12-11 20:10:40 +1000 |
| commit | 62352fabd541aaa9d0a2c957c4bdd4b9c682df9c (patch) | |
| tree | 941513045cb644553af582fc0722c853793a90dd /src/WixToolset.Mba.Core/BootstrapperApplicationFactoryAttribute.cs | |
| parent | ca118d0123624e4e1523eeb7a54eb56364d5876e (diff) | |
| download | wix-62352fabd541aaa9d0a2c957c4bdd4b9c682df9c.tar.gz wix-62352fabd541aaa9d0a2c957c4bdd4b9c682df9c.tar.bz2 wix-62352fabd541aaa9d0a2c957c4bdd4b9c682df9c.zip | |
Import files from BootstrapperCore repo.
Diffstat (limited to 'src/WixToolset.Mba.Core/BootstrapperApplicationFactoryAttribute.cs')
| -rw-r--r-- | src/WixToolset.Mba.Core/BootstrapperApplicationFactoryAttribute.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Core/BootstrapperApplicationFactoryAttribute.cs b/src/WixToolset.Mba.Core/BootstrapperApplicationFactoryAttribute.cs new file mode 100644 index 00000000..781d4ea1 --- /dev/null +++ b/src/WixToolset.Mba.Core/BootstrapperApplicationFactoryAttribute.cs | |||
| @@ -0,0 +1,35 @@ | |||
| 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.BootstrapperCore | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | |||
| 7 | /// <summary> | ||
| 8 | /// Identifies the bootstrapper application factory class. | ||
| 9 | /// </summary> | ||
| 10 | /// <remarks> | ||
| 11 | /// This required assembly attribute identifies the bootstrapper application factory class. | ||
| 12 | /// </remarks> | ||
| 13 | [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)] | ||
| 14 | public sealed class BootstrapperApplicationFactoryAttribute : Attribute | ||
| 15 | { | ||
| 16 | private Type bootstrapperApplicationFactoryType; | ||
| 17 | |||
| 18 | /// <summary> | ||
| 19 | /// Creates a new instance of the <see cref="BootstrapperApplicationFactoryAttribute"/> class. | ||
| 20 | /// </summary> | ||
| 21 | /// <param name="bootstrapperApplicationFactoryType">The <see cref="Type"/> of the BA factory.</param> | ||
| 22 | public BootstrapperApplicationFactoryAttribute(Type bootstrapperApplicationFactoryType) | ||
| 23 | { | ||
| 24 | this.bootstrapperApplicationFactoryType = bootstrapperApplicationFactoryType; | ||
| 25 | } | ||
| 26 | |||
| 27 | /// <summary> | ||
| 28 | /// Gets the type of the bootstrapper application factory class to create. | ||
| 29 | /// </summary> | ||
| 30 | public Type BootstrapperApplicationFactoryType | ||
| 31 | { | ||
| 32 | get { return this.bootstrapperApplicationFactoryType; } | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
