Table of Contents

Class IPrincipalExtensions

Namespace
Songhay.Extensions
Assembly
SonghayCore.dll

Extensions of IPrincipal

public static class IPrincipalExtensions
Inheritance
IPrincipalExtensions
Inherited Members

Methods

ToUserName(IPrincipal?, string)

Converts IPrincipal to a string representation of the user’s name.

public static string ToUserName(this IPrincipal? principal, string defaultUserName)

Parameters

principal IPrincipal

The principal.

defaultUserName string

Default name of the user.

Returns

string