-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Hekku2/feat/options-validation
Validate options
- Loading branch information
Showing
6 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace DiscordImagePoster.Common.IndexService; | ||
|
||
/// <summary> | ||
/// Image index options decide where the index of the images is stored. | ||
/// This is used to keep track of the images that have been posted to Discord | ||
/// and what images are available to post. | ||
/// </summary> | ||
public class ImageIndexOptions | ||
{ | ||
/// <summary> | ||
/// The connection string to the Azure Storage account. | ||
/// </summary> | ||
public required string ConnectionString { get; set; } | ||
|
||
/// <summary> | ||
/// Container name where the index is stored. | ||
/// </summary> | ||
[Required] | ||
public required string ContainerName { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters