-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b75852f
commit 8d6f53f
Showing
7 changed files
with
14 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 1 addition & 22 deletions
23
...rosoft.TemplateEngine.Orchestrator.RunnableProjects/Abstractions/IGeneratedSymbolMacro.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,12 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.TemplateEngine.Abstractions; | ||
using Microsoft.TemplateEngine.Core.Contracts; | ||
|
||
namespace Microsoft.TemplateEngine.Orchestrator.RunnableProjects.Abstractions | ||
{ | ||
/// <summary> | ||
/// An interface for macro created via generated symbols. | ||
/// </summary> | ||
public interface IGeneratedSymbolMacro : IMacro | ||
{ | ||
/// <summary> | ||
/// Evaluates macro defined via generated symbol (<see cref="IGeneratedSymbolConfig"/>). | ||
/// The result of macro evaluation is modification of variable collection <paramref name="variables"/>. | ||
/// </summary> | ||
void Evaluate(IEngineEnvironmentSettings environmentSettings, IVariableCollection variables, IGeneratedSymbolConfig generatedSymbolConfig); | ||
} | ||
|
||
/// <summary> | ||
/// An interface for macro created via generated symbols, that can create config from generated symbol config (<see cref="IGeneratedSymbolConfig"/>). | ||
/// </summary> | ||
/// <typeparam name="T">The type of macro config.</typeparam> | ||
public interface IGeneratedSymbolMacro<T> : IGeneratedSymbolMacro, IMacro<T> | ||
where T : IMacroConfig | ||
public interface IGeneratedSymbolMacro : IMacro<IGeneratedSymbolConfig> | ||
{ | ||
/// <summary> | ||
/// Creates macro config from <see cref="IGeneratedSymbolConfig"/>. | ||
/// </summary> | ||
T CreateConfig(IEngineEnvironmentSettings environmentSettings, IGeneratedSymbolConfig generatedSymbolConfig); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters