@@ -49,7 +49,7 @@ public async Task<ScriptSecrets> ReadAsync(ScriptSecretsType type, string functi
49
49
throw new ArgumentNullException ( nameof ( functionName ) , $ "{ nameof ( functionName ) } cannot be null or empty with { nameof ( type ) } = { nameof ( ScriptSecretsType . Function ) } ") ;
50
50
}
51
51
52
- return type == ScriptSecretsType . Host ? await ReadHostSecretsAsync ( ) : await ReadFunctionSecretsAsync ( functionName ? . ToLowerInvariant ( ) ) ;
52
+ return type == ScriptSecretsType . Host ? await ReadHostSecretsAsync ( ) : await ReadFunctionSecretsAsync ( functionName . ToLowerInvariant ( ) ) ;
53
53
}
54
54
55
55
public Task WriteAsync ( ScriptSecretsType type , string functionName , ScriptSecrets secrets )
@@ -122,14 +122,23 @@ private async Task<IDictionary<string, string>> GetFromFilesAsync(string path)
122
122
return secrets ;
123
123
}
124
124
125
- public Task WriteSnapshotAsync ( ScriptSecretsType type , string functionName , ScriptSecrets secrets )
126
- => throw new NotImplementedException ( ) ;
125
+ /// <summary>
126
+ /// no-op - allow stale secrets to remain.
127
+ /// </summary>
128
+ public async Task PurgeOldSecretsAsync ( IList < string > currentFunctions , ILogger logger )
129
+ => await Task . Yield ( ) ;
127
130
128
- public Task PurgeOldSecretsAsync ( IList < string > currentFunctions , ILogger logger )
129
- => throw new NotImplementedException ( ) ;
131
+ /// <summary>
132
+ /// Runtime is not responsible for encryption so this code will never be executed.
133
+ /// </summary>
134
+ public Task WriteSnapshotAsync ( ScriptSecretsType type , string functionName , ScriptSecrets secrets )
135
+ => throw new NotSupportedException ( ) ;
130
136
137
+ /// <summary>
138
+ /// Runtime is not responsible for encryption so this code will never be executed.
139
+ /// </summary>
131
140
public Task < string [ ] > GetSecretSnapshots ( ScriptSecretsType type , string functionName )
132
- => throw new NotImplementedException ( ) ;
141
+ => throw new NotSupportedException ( ) ;
133
142
134
143
private static Key ParseKeyWithPrefix ( string prefix , string key , string value )
135
144
=> new ( key . Substring ( prefix . Length ) , value ) ;
0 commit comments