16 lines
484 B
C#
16 lines
484 B
C#
namespace BotPages.Core;
|
|
|
|
/// <summary>
|
|
/// Атрибут для свойств страницы, которые должны сохраняться в StateStorage.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
|
|
public sealed class StatefullAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Ключ из Storage
|
|
/// </summary>
|
|
public string Key { get; }
|
|
|
|
///<inheritdoc/>
|
|
public StatefullAttribute(string key) => Key = key;
|
|
} |