diff --git a/Directory.Packages.props b/Directory.Packages.props
index 1362b42..bbcb296 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -6,7 +6,7 @@
8.0.0
-
+
diff --git a/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Dto/TextSubscriptionData.cs b/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Dto/TextSubscriptionData.cs
index e5a0663..5959280 100644
--- a/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Dto/TextSubscriptionData.cs
+++ b/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Dto/TextSubscriptionData.cs
@@ -14,12 +14,12 @@ public sealed class TextSubscriptionData
///
/// Username чата
///
- public string ChatUsername { get; set; }
+ public required string ChatUsername { get; set; }
///
/// Шаблон совпадения
///
- public string Template { get; set; }
+ public required string Template { get; set; }
///
/// Активен ли матч
diff --git a/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Requests/CreateTextSubscriptionRequest.cs b/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Requests/CreateTextSubscriptionRequest.cs
index 560dc6f..fc12d1b 100644
--- a/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Requests/CreateTextSubscriptionRequest.cs
+++ b/src/Nocr.TextMatcher.Api.Contracts/TextMatches/Requests/CreateTextSubscriptionRequest.cs
@@ -12,12 +12,12 @@ public class CreateTextSubscriptionRequest
///
/// Username чата, на который нужно подписаться
///
- public string ChatUsername { get; set; }
+ public required string ChatUsername { get; set; }
///
/// Шаблон совпадения
///
- public string Template { get; set; }
+ public required string Template { get; set; }
///
/// Тип совпадения
diff --git a/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs b/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs
index 819beb8..3db5085 100644
--- a/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs
+++ b/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs
@@ -19,7 +19,7 @@ public class TextSubscriptionMatched : IEvent
///
/// Username чата
///
- public string ChatUsername { get; set; }
+ public required string ChatUsername { get; set; }
///
/// Идентификатор сообщения
@@ -34,7 +34,7 @@ public class TextSubscriptionMatched : IEvent
///
/// Шаблон совпадения
///
- public string Template { get; set; }
+ public required string Template { get; set; }
///
/// Имя или username отправителя
@@ -44,7 +44,7 @@ public class TextSubscriptionMatched : IEvent
///
/// Текст сообщения
///
- public string Text { get; set; }
+ public required string Text { get; set; }
///
/// Дата получения сообщения слушателем
diff --git a/src/Nocr.TextMatcher.Core/Options/RebusRabbitMqOptions.cs b/src/Nocr.TextMatcher.Core/Options/RebusRabbitMqOptions.cs
index e99f9d2..06c4fdf 100644
--- a/src/Nocr.TextMatcher.Core/Options/RebusRabbitMqOptions.cs
+++ b/src/Nocr.TextMatcher.Core/Options/RebusRabbitMqOptions.cs
@@ -5,22 +5,22 @@ public sealed class RebusRabbitMqOptions
///
/// Строка подключение
///
- public string ConnectionString { get; set; }
+ public required string ConnectionString { get; set; }
///
/// Имя входящей очереди
///
- public string InputQueueName { get; set; }
+ public required string InputQueueName { get; set; }
///
/// Имя direct exchange
///
- public string DirectExchangeName { get; set; }
+ public required string DirectExchangeName { get; set; }
///
/// Имя topics exchange
///
- public string TopicsExchangeName { get; set; }
+ public required string TopicsExchangeName { get; set; }
///
/// Список подписок