mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-12 19:24:53 +00:00
27 lines
732 B
C#
27 lines
732 B
C#
using System;
|
|
|
|
namespace PepperDash.Essentials.Core
|
|
{
|
|
/// <summary>
|
|
/// Represents a ConfigSnippetAttribute
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
|
|
public class ConfigSnippetAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Represents a configuration snippet for the device.
|
|
/// </summary>
|
|
/// <param name="configSnippet"></param>
|
|
public ConfigSnippetAttribute(string configSnippet)
|
|
{
|
|
ConfigSnippet = configSnippet;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the configuration snippet for the device.
|
|
/// This snippet can be used in the DeviceConfig to instantiate the device.
|
|
/// </summary>
|
|
public string ConfigSnippet { get; }
|
|
}
|
|
|
|
} |