How to Build Provider

Dec 25, 2010 at 5:40 PM

How to create custom Provider? Thank you.

Coordinator
Jan 3, 2011 at 5:37 PM

Currently, you have to download sources and add a handler and a descriptor to MDownloader.Hostings.Providers project. You can check how default providers are implemented.

Jan 4, 2011 at 6:52 AM

HI, adma

Thank you for your reply!

I read the source code,
C # does not like me, so I created a VB project"MDownloader.Hostings.Providers".
And revised the "HostingsService.cs" The constructor to load the assembly.

Currently, basic working fine (not main part -_---!)

I encountered a puzzling problem? When I use
"Resource = browser.GetResourceData (gUrl, ResourceRange.Default))"
I do not know why, dropped out.
Not implemented "data = resource.OpenStream (). ReadStringToEnd ()"

But using "browser.NavigateTo (target.Link.ToString ())" is working.