@@ -29,7 +29,7 @@ public sealed class BlobStorageSecretsRepository : ISecretsRepository, IDisposab
29
29
private readonly string _accountConnectionString ;
30
30
private bool _disposed = false ;
31
31
32
- public BlobStorageSecretsRepository ( string secretSentinelDirectoryPath , string accountConnectionString , string siteHostName )
32
+ public BlobStorageSecretsRepository ( string secretSentinelDirectoryPath , string accountConnectionString , string siteSlotName )
33
33
{
34
34
if ( secretSentinelDirectoryPath == null )
35
35
{
@@ -39,6 +39,10 @@ public BlobStorageSecretsRepository(string secretSentinelDirectoryPath, string a
39
39
{
40
40
throw new ArgumentNullException ( nameof ( accountConnectionString ) ) ;
41
41
}
42
+ if ( siteSlotName == null )
43
+ {
44
+ throw new ArgumentNullException ( nameof ( siteSlotName ) ) ;
45
+ }
42
46
43
47
_secretsSentinelFilePath = secretSentinelDirectoryPath ;
44
48
_hostSecretsSentinelFilePath = Path . Combine ( _secretsSentinelFilePath , ScriptConstants . HostMetadataFileName ) ;
@@ -48,7 +52,7 @@ public BlobStorageSecretsRepository(string secretSentinelDirectoryPath, string a
48
52
_sentinelFileWatcher = new AutoRecoveringFileSystemWatcher ( _secretsSentinelFilePath , "*.json" ) ;
49
53
_sentinelFileWatcher . Changed += OnChanged ;
50
54
51
- _secretsBlobPath = siteHostName . ToLowerInvariant ( ) ;
55
+ _secretsBlobPath = siteSlotName . ToLowerInvariant ( ) ;
52
56
_hostSecretsBlobPath = string . Format ( "{0}/{1}" , _secretsBlobPath , ScriptConstants . HostMetadataFileName ) ;
53
57
54
58
_accountConnectionString = accountConnectionString ;
0 commit comments