I need a [login to view URL] derived class that will enable disk and/or cpu throttling on read/write.
By Steam class I mean this:
<[login to view URL]>
So, the class definition will be as follows:
class CappedStream:Stream
{
? ? ? public Stream Wrapped;
? ? ? bool CapReads;
? ? ? bool CapWrites;
? ? ? bool CapCPU;
? ? ? int CapReadBytesPerSec;
? ? ? int CapWriteBytesPerSec;
? ? ? int CapCPUPercentage;
// ... ? every [login to view URL] member implemented down here
}
Basically, i need it to limit throughput of disk IO if Wrapped stream will be something similar to FileStream, and CPU activity if Wrapped stream is one of the following:?
[login to view URL],?
[login to view URL],
[login to view URL]
Target environment is .NET 2.0, so no new bells and whistles please.
Coder should provide testing environment (one form) from which all the feature of the component could be observed and tested.
## Deliverables
1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement).
2) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
3) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Employer's environment--Deliverables must be installed by the Worker in ready-to-run condition in the Employer's environment.
b) For all others including desktop software or software the employer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this project.
## Platform
windows 7/xp, 32/64bit