- Where Developers Learn, Share, & Build Careers


I am trying to understand the loop to work in a particular case, if someone can explain it Will help me

Well, what I am doing is downloading email from a mailbox (like 50 at a time) to Hotmail (I am using the MailBEE.NET object for that) on the download I am saving some things like sender's name, attachment name (if any) database and so on ... this is a fairly long process on which the fact is that the program must first log in to Hotmail server, then Download the message and then in DB Run a query to save the content.

My question is, if the task is to be defined in a separate assembly (DLL) to do all this work and the calling program is a web based application that is using this assembly in context, So what if I keep this function in these calls for loop? Wait for the loop to end the function? Or will it keep calling this function at times?

What better way to suggest you do this work?

Thank you.

It depends on how you write the code that downloads. If only one method (though it is in a separate assembly), then your web interface will be just a new example and it will download more than one loop at a time.

You can consider using any type of queue function, where you add a download request to a queue, and then any other worker / service has its parameters, username / password / Setting, etc .. Use queue to download

I hope this helps, tell me that you need something further.

Regards Phil

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -