File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/WebJobs.Script.WebHost/Security/Serialization Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 4
4
using System ;
5
5
using System . Collections . Generic ;
6
6
using System . Linq ;
7
- using System . Text ;
8
- using System . Threading . Tasks ;
9
- using Microsoft . Azure . WebJobs . Script . Config ;
10
- using Newtonsoft . Json ;
11
7
using Newtonsoft . Json . Linq ;
12
8
13
9
namespace Microsoft . Azure . WebJobs . Script . WebHost
14
10
{
15
11
public static class ScriptSecretSerializer
16
12
{
13
+ private static IScriptSecretSerializer _defaultSerializer = new ScriptSecretSerializerV1 ( ) ;
17
14
private static List < IScriptSecretSerializer > _secretFormatters = new List < IScriptSecretSerializer >
18
15
{
19
16
new ScriptSecretSerializerV0 ( ) ,
20
- new ScriptSecretSerializerV1 ( )
17
+ _defaultSerializer
21
18
} ;
22
19
23
- internal static IScriptSecretSerializer DefaultSerializer => _secretFormatters . Last ( ) ;
20
+ internal static IScriptSecretSerializer DefaultSerializer => _defaultSerializer ;
24
21
25
22
public static ScriptSecrets DeserializeSecrets ( ScriptSecretsType secretsType , string secretsJson )
26
23
{
You can’t perform that action at this time.
0 commit comments