Exemple #1
0
 public static ResourceManagerOptions GetAwsV4ResourceManagerOptions(this IStageVariableProvider stageVariableProvider)
 => new ResourceManagerOptions(stageVariableProvider.StageVariables["ServicesUrl"])
 .WithAuth(
     GetDefaultAwsV4AuthProvider(),
     stageVariableProvider.StageVariables.ContainsKey("ServicesAuthType")
                 ? stageVariableProvider.StageVariables["ServicesAuthType"]
                 : ServicesAuthType,
     stageVariableProvider.StageVariables.ContainsKey("ServicesAuthContext")
                 ? stageVariableProvider.StageVariables["ServicesAuthContext"]
                 : ServicesAuthContext
     );
Exemple #2
0
 public static ResourceManager GetAwsV4ResourceManager(this IStageVariableProvider stageVariableProvider)
 => new ResourceManager(stageVariableProvider.GetAwsV4ResourceManagerOptions());