download progress (wodSSH / wodSSH.NET)

by teddy1969 @, (7165 days ago)

Hi,

I wonder if there is a possibility to check the download state ( x of y bytes downloaded ) without using the Progress event?

In the response object I found the Length property, but I'm still missing a property like 'position'.

Is there a chance?

Thanks in advance.

Best wishes

Teddy

locked

Re: download progress

by Jasmine, (7165 days ago) @ teddy1969

Teddy,

that's why Progress event is there. Why can't you use it?

locked

Re: download progress

by teddy1969 @, (7165 days ago) @ Jasmine

Teddy,

that's why Progress event is there. Why can't you use it?

Sure I could use the Progress event, no problem!

I think there could be situations where you would like to get the download position without using the event, e.g. to calculate the total downloaded volume on multiple downloads. Therefore you have to calculate this value temporarely in the Progress event.

I think it would be a nice addon to implement a 'position' property in the Response object. Or is there something to be said against it? :-)

Best wishes

Teddy

locked

Re: download progress

by Jasmine, (7165 days ago) @ teddy1969

Teddy,

:) well... I can reject the idea, can't I :) This just doesn't sound like natural way of solving problems. Progress event is exactly made for calculations like that. Current position to be returned from read-only property is something you may currently need in your app, but if we go into implementing such specific things - we can end up with 10000 properties like that.

I'm always interested in more general solutions - and Progress is the one .

Hope you see my point.

Regards,
Kreso

locked

Re: download progress

by teddy1969 @, (7163 days ago) @ Jasmine

Hope you see my point.

Yes, I see your point. It's ok.

Thank you for support.

Teddy

locked