InedoSDK Reference
Version:

ServiceCredentials Class

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

Syntax

public class ServiceCredentials : SecureCredentials, Inedo.Diagnostics.ILogSink

Constructors

Name Description
ServiceCredentials

Initializes a new instance of the ServiceCredentials class.

Events

Name Description
MessageLogged

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(System.Threading.CancellationToken cancellationToken)

Remarks

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