C# 클래스 Smrf.SocialNetworkLib.HttpSocialNetworkUtil

Utility methods for getting social networks via HTTP requests.
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

공개 메소드들

메소드 설명
CreateHttpWebRequest ( String url, String userAgent, Int32 timeoutMs ) : HttpWebRequest
ExceptionIsWebOrJson ( Exception exception ) : System.Boolean
ExceptionIsWebOrXml ( Exception exception ) : System.Boolean
GetHttpWebResponseStreamWithRetries ( String url, HttpStatusCode httpStatusCodesToFailImmediately, RequestStatistics requestStatistics, String userAgent, Int32 timeoutMs, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : Stream
WebExceptionHasHttpStatusCode ( WebException webException ) : System.Boolean

비공개 메소드들

메소드 설명
GetHttpWebResponseStreamNoRetries ( HttpWebRequest oHttpWebRequest ) : Stream

메소드 상세

CreateHttpWebRequest() 공개 정적인 메소드

public static CreateHttpWebRequest ( String url, String userAgent, Int32 timeoutMs ) : HttpWebRequest
url String
userAgent String
timeoutMs System.Int32
리턴 System.Net.HttpWebRequest

ExceptionIsWebOrJson() 공개 정적인 메소드

public static ExceptionIsWebOrJson ( Exception exception ) : System.Boolean
exception System.Exception
리턴 System.Boolean

ExceptionIsWebOrXml() 공개 정적인 메소드

public static ExceptionIsWebOrXml ( Exception exception ) : System.Boolean
exception System.Exception
리턴 System.Boolean

GetHttpWebResponseStreamWithRetries() 공개 정적인 메소드

public static GetHttpWebResponseStreamWithRetries ( String url, HttpStatusCode httpStatusCodesToFailImmediately, RequestStatistics requestStatistics, String userAgent, Int32 timeoutMs, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : Stream
url String
httpStatusCodesToFailImmediately HttpStatusCode
requestStatistics RequestStatistics
userAgent String
timeoutMs System.Int32
reportProgressHandler ReportProgressHandler
checkCancellationPendingHandler CheckCancellationPendingHandler
리턴 Stream

WebExceptionHasHttpStatusCode() 공개 정적인 메소드

public static WebExceptionHasHttpStatusCode ( WebException webException ) : System.Boolean
webException System.Net.WebException
리턴 System.Boolean