Use file scoped namespace declarations

This commit is contained in:
Patrik Svensson
2021-12-21 11:06:46 +01:00
committed by Phil Scott
parent 1dbaf50935
commit ec1188b837
607 changed files with 28739 additions and 29245 deletions

View File

@@ -1,28 +1,27 @@
using System.Collections.Generic;
namespace Spectre.Console
namespace Spectre.Console;
/// <summary>
/// Represents something that can enrich a profile.
/// </summary>
public interface IProfileEnricher
{
/// <summary>
/// Represents something that can enrich a profile.
/// Gets the name of the enricher.
/// </summary>
public interface IProfileEnricher
{
/// <summary>
/// Gets the name of the enricher.
/// </summary>
public string Name { get; }
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>
/// 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);
}
}
/// <summary>
/// Enriches the profile.
/// </summary>
/// <param name="profile">The profile to enrich.</param>
void Enrich(Profile profile);
}