Table of Contents

Class NetworkCredentialExtension

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

Provides extension methods for System.Net.NetworkCredentials.

public static class NetworkCredentialExtension
Inheritance
object
NetworkCredentialExtension

Methods

ToBasicAuth(NetworkCredential)

Creates a HTTP basic authentication header from the provided credentials.

public static AuthenticationHeaderValue ToBasicAuth(this NetworkCredential credential)

Parameters

credential NetworkCredential

Returns

AuthenticationHeaderValue