Skip to content

Commit 41eff63

Browse files
author
Joel Mitchell
committed
Made the connection string paramter required for thr bog stoage settings
1 parent 4eaaa80 commit 41eff63

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Cofoundry.Plugins.Azure/AzureBlobFileService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public class AzureBlobFileService : IFileStoreService
2222
private readonly CloudBlobClient _blobClient;
2323
private static ConcurrentDictionary<string, object> _initializedContainers = new ConcurrentDictionary<string, object>();
2424

25-
public AzureBlobFileService(AzureBlobFileServiceSettings settings)
25+
public AzureBlobFileService(
26+
AzureBlobFileServiceSettings settings
27+
)
2628
{
2729
Condition.Requires(settings).IsNotNull();
2830

src/Cofoundry.Plugins.Azure/AzureBlobFileServiceSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66
using Cofoundry.Core.Configuration;
7+
using System.ComponentModel.DataAnnotations;
78

89
namespace Cofoundry.Plugins.Azure
910
{
@@ -12,6 +13,7 @@ public class AzureBlobFileServiceSettings : PluginConfigurationSettingsBase
1213
/// <summary>
1314
/// The connection string to use when accessing files in blob storage
1415
/// </summary>
16+
[Required]
1517
public string ConnectionString { get; set; }
1618
}
1719
}

0 commit comments

Comments
 (0)