/// <summary>
 /// Creates a new instance of the <see cref="VisualStudioCredential"/> with the specified options.
 /// </summary>
 /// <param name="options">Options for configuring the credential.</param>
 public VisualStudioCredential(VisualStudioCredentialOptions options) : this(options?.TenantId, CredentialPipeline.GetInstance(options), default, default)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of the <see cref="VisualStudioCredential"/> with the specified options.
 /// </summary>
 /// <param name="options">Options for configuring the credential.</param>
 public VisualStudioCredential(VisualStudioCredentialOptions options) : this(options?.TenantId, CredentialPipeline.GetInstance(options), default, default)
 {
     _allowMultiTenantAuthentication = options?.AllowMultiTenantAuthentication ?? false;
 }
Exemplo n.º 3
0
 internal VisualStudioCredential(string tenantId, CredentialPipeline pipeline, IFileSystemService fileSystem, IProcessService processService, VisualStudioCredentialOptions options = null)
 {
     _logPII         = options?.IsLoggingPIIEnabled ?? false;
     _tenantId       = tenantId;
     _pipeline       = pipeline ?? CredentialPipeline.GetInstance(null);
     _fileSystem     = fileSystem ?? FileSystemService.Default;
     _processService = processService ?? ProcessService.Default;
 }
Exemplo n.º 4
0
 internal VisualStudioCredential(string tenantId, CredentialPipeline pipeline, IFileSystemService fileSystem, IProcessService processService, VisualStudioCredentialOptions options = null)
 {
     _allowMultiTenantAuthentication = options?.AllowMultiTenantAuthentication ?? false;
     _tenantIdOptionProvided         = tenantId != null;
     _tenantId       = tenantId;
     _pipeline       = pipeline ?? CredentialPipeline.GetInstance(null);
     _fileSystem     = fileSystem ?? FileSystemService.Default;
     _processService = processService ?? ProcessService.Default;
 }