spectre.console/src/Spectre.Console/IProfileEnricher.cs
Patrik Svensson 52c1d9122b
Add global usings (#668)
* Use global usings

* Fix namespace declarations for test projects
2021-12-23 16:50:31 +01:00

25 lines
723 B
C#

namespace Spectre.Console;
/// <summary>
/// Represents something that can enrich a profile.
/// </summary>
public interface IProfileEnricher
{
/// <summary>
/// Gets the name of the enricher.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets whether or not this enricher is enabled.
/// </summary>
/// <param name="environmentVariables">The environment variables.</param>
/// <returns>Whether or not this enricher is enabled.</returns>
bool Enabled(IDictionary<string, string> environmentVariables);
/// <summary>
/// Enriches the profile.
/// </summary>
/// <param name="profile">The profile to enrich.</param>
void Enrich(Profile profile);
}