C# Class GetResponse, shared-source-cli-2.0

Sample demonstrates: 1) Using a proxy with a WebRequest. 2) Getting a WebResponse
ファイルを表示 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Properties

Property Type Description
AllDone ManualResetEvent

Public Methods

Method Description
GetPage ( Uri HttpSite ) : void
GetPageAsync ( Uri HttpSite ) : void
Main ( string args ) : void

Private Methods

Method Description
ReadCallBack ( IAsyncResult InResult ) : void

This is the callback handler for the async stream read. Calls itself under data from stream is all read.

ResponseCallback ( IAsyncResult InResult ) : void

This is the callback handler for the asynch WebRequest.

Method Details

GetPage() public static method

public static GetPage ( Uri HttpSite ) : void
HttpSite Uri
return void

GetPageAsync() public static method

public static GetPageAsync ( Uri HttpSite ) : void
HttpSite Uri
return void

Main() public static method

public static Main ( string args ) : void
args string
return void

Property Details

AllDone public_oe static_oe property

public static ManualResetEvent AllDone
return ManualResetEvent