/// <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) { }
/// <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; }
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; }
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; }