public HttpProtocolProviderSpeedLimitProxy(IProtocolProvider proxy, SpeedLimitHelper speedLimit) { this.proxy = proxy; this.speedLimit = speedLimit; }
/// <summary> /// bind proxy speed limit provider to resource provider /// </summary> /// <param name="speedLimit">speed limit for download</param> /// <returns>proxy provider</returns> public IProtocolProvider BindProtocolProviderProxy(SpeedLimitHelper speedLimit) { if (provider == null) { provider = new HttpProtocolProviderSpeedLimitProxy(provider, speedLimit); } return provider; }
public LimitedSpeedProxyStream(Stream proxy, SpeedLimitHelper speedLimit) { this.speedLimit = speedLimit; this.proxy = proxy; }