예제 #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
     );
예제 #2
0
 public static ResourceManager GetAwsV4ResourceManager(this IStageVariableProvider stageVariableProvider)
 => new ResourceManager(stageVariableProvider.GetAwsV4ResourceManagerOptions());