C# 클래스 DotNetOpenAuth.OpenId.Realm

파일 보기 프로젝트 열기: OneCare/dotnetopenid 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Contains bool
Contains bool
Discover DotNetOpenAuth.Xrds.XrdsDocument
DiscoverReturnToEndpoints IEnumerable
ObjectInvariant void
Realm System
Realm System
Realm System
SafeUriBuilderToString string

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Checks whether one Realm is equal to another.

GetHashCode ( ) : int

Returns the hash code used for storing this object in a hash table.

Realm ( Uri realmUrl ) : System

Initializes a new instance of the Realm class.

ToString ( ) : string

Returns the string form of this Realm.

비공개 메소드들

메소드 설명
Contains ( Uri url ) : bool

Validates a URL against this trust root.

Contains ( string url ) : bool

Validates a URL against this trust root.

Discover ( IDirectWebRequestHandler requestHandler, bool allowRedirects ) : DotNetOpenAuth.Xrds.XrdsDocument

Searches for an XRDS document at the realm URL.

DiscoverReturnToEndpoints ( IDirectWebRequestHandler requestHandler, bool allowRedirects ) : IEnumerable

Searches for an XRDS document at the realm URL, and if found, searches for a description of a relying party endpoints (OpenId login pages).

ObjectInvariant ( ) : void
Realm ( ) : System

Initializes static members of the Realm class.

Realm ( UriBuilder realmUriBuilder ) : System

Initializes a new instance of the Realm class.

This is useful because UriBuilder can construct a host with a wildcard in the Host property, but once there it can't be converted to a Uri.

Realm ( string realmUrl ) : System
SafeUriBuilderToString ( UriBuilder realmUriBuilder ) : string

Calls UriBuilder.ToString if the argument is non-null. Otherwise throws ArgumentNullException.

This simple method is worthwhile because it checks for null before dereferencing the UriBuilder. Since this is called from within a constructor's base(...) call, this avoids a NullReferenceException when we should be throwing an ArgumentNullException.

메소드 상세

Equals() 공개 메소드

Checks whether one Realm is equal to another.
/// The parameter is null. ///
public Equals ( object obj ) : bool
obj object The to compare with the current .
리턴 bool

GetHashCode() 공개 메소드

Returns the hash code used for storing this object in a hash table.
public GetHashCode ( ) : int
리턴 int

Realm() 공개 메소드

Initializes a new instance of the Realm class.
public Realm ( Uri realmUrl ) : System
realmUrl System.Uri The realm URL of the Relying Party.
리턴 System

ToString() 공개 메소드

Returns the string form of this Realm.
public ToString ( ) : string
리턴 string