| 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.Extensibility |
| 4 | { |
| 5 | using System; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// Implementations may request an IWixToolsetCoreServiceProvider at instantiation by having a single parameter constructor for it. |
| 9 | /// </summary> |
| 10 | public interface IExtensionFactory |
| 11 | { |
| 12 | /// <summary> |
| 13 | /// Request to create an extension of the specified type. |
| 14 | /// </summary> |
| 15 | /// <param name="extensionType">Extension type to create.</param> |
| 16 | /// <param name="extension">Extension created.</param> |
| 17 | /// <returns>True if extension was created; otherwise false.</returns> |
| 18 | bool TryCreateExtension(Type extensionType, out object extension); |
| 19 | } |
| 20 | } |