Skip to content

Commit a5f0d8f

Browse files
Add required modifier to required properties
1 parent afefd29 commit a5f0d8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Umbraco.StorageProviders.AzureBlob/IO/AzureBlobFileSystemOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public sealed class AzureBlobFileSystemOptions
1616
/// Gets or sets the storage account connection string.
1717
/// </summary>
1818
[Required]
19-
public string ConnectionString { get; set; } = null!;
19+
public required string ConnectionString { get; set; }
2020

2121
/// <summary>
2222
/// Gets or sets the container name.
2323
/// </summary>
2424
[Required]
25-
public string ContainerName { get; set; } = null!;
25+
public required string ContainerName { get; set; }
2626

2727
/// <summary>
2828
/// Gets or sets the root path of the container.
@@ -33,5 +33,5 @@ public sealed class AzureBlobFileSystemOptions
3333
/// Gets or sets the virtual path.
3434
/// </summary>
3535
[Required]
36-
public string VirtualPath { get; set; } = null!;
36+
public required string VirtualPath { get; set; }
3737
}

src/Umbraco.StorageProviders/CdnMediaUrlProviderOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public sealed class CdnMediaUrlProviderOptions
1414
/// The CDN media root URL.
1515
/// </value>
1616
[Required]
17-
public Uri Url { get; set; } = null!;
17+
public required Uri Url { get; set; }
1818

1919
/// <summary>
2020
/// Gets or sets a value indicating whether to remove the <see cref="Umbraco.Cms.Core.Configuration.Models.GlobalSettings.UmbracoMediaPath"/> from the path, defaults to <c>true</c>.

0 commit comments

Comments
 (0)