C# Class logv.http.AsyncStreamCopier

Copies data from one stream into another using the async pattern. Copies are done in 4k blocks.
Show file Open project: coolya/logv.http Class Usage Examples

Public Methods

Method Description
AsyncStreamCopier ( Stream input, Stream output ) : System

Initializes a new instance of the AsyncStreamCopier class.

Copy ( ) : void

Starts the copying

Private Methods

Method Description
GetData ( ) : void
RaiseComplete ( ) : void
ReadComplete ( IAsyncResult result ) : void

Method Details

AsyncStreamCopier() public method

Initializes a new instance of the AsyncStreamCopier class.
public AsyncStreamCopier ( Stream input, Stream output ) : System
input Stream The input.
output Stream The output.
return System

Copy() public method

Starts the copying
public Copy ( ) : void
return void