C# 클래스 Smrf.SocialNetworkLib.RequestStatistics

Keeps track of requests that have been made while getting a network.
Call OnSuccessfulRequest each time a network request succeeds. Call OnUnexpectedException each time a network request fails (after retries) with an unexpected exception. After all requests have been made, read the SuccessfulRequests, , and LastUnexpectedException properties to create a request summary.
상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_iSuccessfulRequests System.Int32
m_iUnexpectedExceptions System.Int32
m_oLastUnexpectedException System.Exception
m_oStartTimeUtc System.DateTime

공개 메소드들

메소드 설명
OnSuccessfulRequest ( ) : void
OnUnexpectedException ( Exception unexpectedException ) : void
RequestStatistics ( ) : System

Initializes a new instance of the RequestStatistics class.

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

OnSuccessfulRequest() 공개 메소드

public OnSuccessfulRequest ( ) : void
리턴 void

OnUnexpectedException() 공개 메소드

public OnUnexpectedException ( Exception unexpectedException ) : void
unexpectedException System.Exception
리턴 void

RequestStatistics() 공개 메소드

Initializes a new instance of the RequestStatistics class.
public RequestStatistics ( ) : System
리턴 System

프로퍼티 상세

m_iSuccessfulRequests 보호되어 있는 프로퍼티

protected Int32,System m_iSuccessfulRequests
리턴 System.Int32

m_iUnexpectedExceptions 보호되어 있는 프로퍼티

protected Int32,System m_iUnexpectedExceptions
리턴 System.Int32

m_oLastUnexpectedException 보호되어 있는 프로퍼티

protected Exception,System m_oLastUnexpectedException
리턴 System.Exception

m_oStartTimeUtc 보호되어 있는 프로퍼티

protected DateTime,System m_oStartTimeUtc
리턴 System.DateTime