File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.ServiceClientAdapter Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -24,26 +24,17 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClient
24
24
{
25
25
public partial class ServiceClientAdapter
26
26
{
27
- const string AppSettingsSectionName = "appSettings" ;
28
27
const string RecoveryServicesResourceNamespace = "Microsoft.RecoveryServices" ;
29
- const string ProviderNamespaceKey = "ProviderNamespace" ;
30
28
const string AzureFabricName = "Azure" ;
31
29
32
30
ClientProxy < RecoveryServicesNS . RecoveryServicesBackupManagementClient , RecoveryServicesModelsNS . CustomRequestHeaders > BmsAdapter ;
33
31
34
32
public ServiceClientAdapter ( SubscriptionCloudCredentials creds , Uri baseUri )
35
33
{
36
- System . Configuration . Configuration exeConfiguration = System . Configuration . ConfigurationManager . OpenExeConfiguration ( System . Reflection . Assembly . GetExecutingAssembly ( ) . Location ) ;
37
- System . Configuration . AppSettingsSection appSettings = ( System . Configuration . AppSettingsSection ) exeConfiguration . GetSection ( AppSettingsSectionName ) ;
38
- string recoveryServicesResourceNamespace = RecoveryServicesResourceNamespace ;
39
- if ( appSettings . Settings [ ProviderNamespaceKey ] != null )
40
- {
41
- recoveryServicesResourceNamespace = appSettings . Settings [ ProviderNamespaceKey ] . Value ;
42
- }
43
34
BmsAdapter = new ClientProxy < RecoveryServicesNS . RecoveryServicesBackupManagementClient , RecoveryServicesModelsNS . CustomRequestHeaders > (
44
35
clientRequestId => new RecoveryServicesModelsNS . CustomRequestHeaders ( ) { ClientRequestId = clientRequestId } ,
45
36
creds , baseUri ) ;
46
- BmsAdapter . Client . ResourceNamespace = recoveryServicesResourceNamespace ;
37
+ BmsAdapter . Client . ResourceNamespace = RecoveryServicesResourceNamespace ;
47
38
}
48
39
}
49
40
}
You can’t perform that action at this time.
0 commit comments