|
-
Dec 29th, 2010, 05:49 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] backgroundworker
Hi,
There is a fully working .net windows application which uses the background worker process in the form.
Using my new silverlight 4 application, I now would like to make it use the functionalities as the application in the winform i.e. background worker, etc...
Question:
As I am using the wcf to retrieve data and pass to the silverlight page, how/where do I use the background worker process? Do I use it in the service or in the silverlight page?
Alternatively, should I just have a timer in the silverlight page which calls the wcf every second or so to update the silverlight page with data?
Thanks
Last edited by arkiboys; Dec 29th, 2010 at 07:14 AM.
-
Dec 30th, 2010, 04:40 AM
#2
Re: backgroundworker
The background worker goes in the Silverlight page, because that background worker prevents the page from beeing blocked.
You shouldn't use a timer, use events (from the backgroundworker) to udate the data.
Alternativly you could use a async call to the WCF service
-
Dec 30th, 2010, 05:52 AM
#3
Thread Starter
Fanatic Member
Re: backgroundworker
I think I should use a timer so that the wcf method gets called every few seconds.
Don't you think?
Thanks
-
Dec 30th, 2010, 09:06 AM
#4
Re: backgroundworker
Why would you call the WCF service every few seconds? Sounds like you need a duplex binding
-
Dec 30th, 2010, 09:16 AM
#5
Thread Starter
Fanatic Member
Re: backgroundworker
Processing is needed to be doone every few seconds.
May be it is best to have a windows service which can be started. And have a timer in the windows service which does the processing every few seconds.
What do you think?
Thanks
-
Jan 1st, 2011, 04:03 PM
#6
Re: backgroundworker
There is almost no good reason for polling. Where does the service gets its data from?
-
Jan 1st, 2011, 04:32 PM
#7
Thread Starter
Fanatic Member
Re: backgroundworker
Solved by having a windows service to do the processing and the WCF to pull th edata out of the windows service into the client.
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|