ServiceCredentials Class

Provides information to establish an authenticated connection to service such as ProGet or Azure DevOps

Inheritance Hierarchy

Syntax

public class ServiceCredentials : SecureCredentials

Constructors

Name Description
ServiceCredentials

Initializes a new instance of the ServiceCredentials class.

Properties

Name Description
ServiceUrl

Gets or sets the service instance's root URL, such as "https://progetsv1.corp/" or "https://devops.azure.com/MyOrg/"

Methods

Name Description
GetCredentialDescription

Describes the credential with non-sensitive information, such the UserName or "(secret)" for an API key.

GetDescription

Describes the service credential as a whole, which is typically the service description but may also include "Username @ MyService.com".

GetServiceDescription

Describes the service with url-specific information, such as "ProGet (pkgsv1.corp)" or "Azure DevOps (devops.azure.com/MyOrg).

TryGetServiceUrlHostName(System.String& hostName)
ValidateAsync(Inedo.Diagnostics.ILogSink log, System.Threading.CancellationToken cancellationToken)

Remarks

The service instance is accessible by the ServiceUrl, and implementors will define an API Key or user account that exists on an instance of the service