ValidateAsync(Inedo.Diagnostics.ILogSink log, Inedo.Extensibility.Credentials.ICredentialResolutionContext context) Method

Performs a basic validation against the state of the resource for UI purposes

Syntax

public virtual System.Threading.Tasks.Task ValidateAsync(Inedo.Diagnostics.ILogSink log, Inedo.Extensibility.Credentials.ICredentialResolutionContext context)

Parameters

log
Type: Inedo.Diagnostics.ILogSink

a logger that will be used to write messages to the web UI

context
Type: Inedo.Extensibility.Credentials.ICredentialResolutionContext

the context used to create a credential

Remarks

This is performed in the context of the web, primarily to help users quickly discover typos or other errors in configuring a resource. You should not perform long-running actions, access agents, or perform anything other than basic web requests with validation