From 41689bca7fa711716cbee3f39abee24f8b65a694 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Tue, 28 May 2024 06:36:18 +0300 Subject: [PATCH] feat: add attribute for required configuration --- .../General/Attributes/RequiredSettingsAttribute.cs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Endpoint/Configuration/General/Attributes/RequiredSettingsAttribute.cs diff --git a/Endpoint/Configuration/General/Attributes/RequiredSettingsAttribute.cs b/Endpoint/Configuration/General/Attributes/RequiredSettingsAttribute.cs new file mode 100644 index 0000000..dcb13ac --- /dev/null +++ b/Endpoint/Configuration/General/Attributes/RequiredSettingsAttribute.cs @@ -0,0 +1,8 @@ +using System; + +namespace Mirea.Api.Endpoint.Configuration.General.Attributes; + +[AttributeUsage(AttributeTargets.Class, Inherited = false)] +public class RequiredSettingsAttribute : Attribute; + +// todo: only with IIsConfigured. If possible add Roslyn Analyzer later \ No newline at end of file