예제 #1
0
 internal AzurePowerShellCredential(AzurePowerShellCredentialOptions options, CredentialPipeline pipeline, IProcessService processService)
 {
     UseLegacyPowerShell = false;
     _logPII             = options?.IsLoggingPIIEnabled ?? false;
     _tenantId           = options?.TenantId;
     _pipeline           = pipeline ?? CredentialPipeline.GetInstance(options);
     _processService     = processService ?? ProcessService.Default;
 }
예제 #2
0
 internal AzurePowerShellCredential(AzurePowerShellCredentialOptions options, CredentialPipeline pipeline, IProcessService processService)
 {
     UseLegacyPowerShell             = false;
     _allowMultiTenantAuthentication = options?.AllowMultiTenantAuthentication ?? false;
     _tenantId       = options?.TenantId;
     _pipeline       = pipeline ?? CredentialPipeline.GetInstance(options);
     _processService = processService ?? ProcessService.Default;
 }
예제 #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="AzurePowerShellCredential"/> with the specified options.
 /// </summary>
 /// <param name="options">Options for configuring the credential.</param>
 public AzurePowerShellCredential(AzurePowerShellCredentialOptions options) : this(options, default, default)
 {
 }
 internal AzurePowerShellCredential(AzurePowerShellCredentialOptions options, CredentialPipeline pipeline, IProcessService processService)
 {
     UseLegacyPowerShell = options?.UseLegacyPowerShell ?? new AzurePowerShellCredentialOptions().UseLegacyPowerShell;
     _pipeline           = pipeline ?? CredentialPipeline.GetInstance(options);
     _processService     = processService ?? ProcessService.Default;
 }