Table of Contents

Class AnsiCliCredentialProvider

Namespace
NanoByte.Common.Net
Assembly
NanoByte.Common.AnsiCli.dll

Asks the user for System.Net.NetworkCredentials using an ANSI console prompt.

public class AnsiCliCredentialProvider : ICredentialProvider
Inheritance
object
AnsiCliCredentialProvider
Implements
Extension Methods

Constructors

AnsiCliCredentialProvider(Action?)

Asks the user for System.Net.NetworkCredentials using an ANSI console prompt.

public AnsiCliCredentialProvider(Action? beforePrompt = null)

Parameters

beforePrompt Action

An optional callback to be invoked right before the user is prompted for credentials

Methods

GetCredential(Uri, bool)

Returns System.Net.NetworkCredentials for a specific System.Uri.

public NetworkCredential GetCredential(Uri uri, bool previousIncorrect = false)

Parameters

uri Uri

The URI that the client is providing authentication for.

previousIncorrect bool

Reports that the credentials previously returned by this provider were incorrect.

Returns

NetworkCredential