Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. silverlight - backgroundworker process [modified]

silverlight - backgroundworker process [modified]

Scheduled Pinned Locked Moved WPF
csharpwcfdesignquestion
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    With WCF you can retrieve data, etc into silverlight UI using asyncronous calls... Then is there any reason for backgrooundworker process to be used in silverlight? Thanks

    modified on Thursday, September 1, 2011 1:28 AM

    M P 2 Replies Last reply
    0
    • A arkiboys

      With WCF you can retrieve data, etc into silverlight UI using asyncronous calls... Then is there any reason for backgrooundworker process to be used in silverlight? Thanks

      modified on Thursday, September 1, 2011 1:28 AM

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Define required! I am yet to use a BGW process in SL.

      Never underestimate the power of human stupidity RAH

      A 1 Reply Last reply
      0
      • M Mycroft Holmes

        Define required! I am yet to use a BGW process in SL.

        Never underestimate the power of human stupidity RAH

        A Offline
        A Offline
        arkiboys
        wrote on last edited by
        #3

        Hello, I updated the question. Thanks

        1 Reply Last reply
        0
        • A arkiboys

          With WCF you can retrieve data, etc into silverlight UI using asyncronous calls... Then is there any reason for backgrooundworker process to be used in silverlight? Thanks

          modified on Thursday, September 1, 2011 1:28 AM

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          I'm sure you've asked this question before. Yes, you can use a background worker to do something in Silverlight, but in most cases it's not necessary because of the asynchronous nature of the client/server roundtrip. Saying that, you could be attempting to do something entirely on the client side, e.g. performing a long running calculation, and you should use some form of threading for this. The answer you are looking for: Roundtrip = asynchronous = no need for additional threading Client side only = synchronous = you might want to use threading here.

          Forgive your enemies - it messes with their heads

          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

          A 1 Reply Last reply
          0
          • P Pete OHanlon

            I'm sure you've asked this question before. Yes, you can use a background worker to do something in Silverlight, but in most cases it's not necessary because of the asynchronous nature of the client/server roundtrip. Saying that, you could be attempting to do something entirely on the client side, e.g. performing a long running calculation, and you should use some form of threading for this. The answer you are looking for: Roundtrip = asynchronous = no need for additional threading Client side only = synchronous = you might want to use threading here.

            Forgive your enemies - it messes with their heads

            My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

            A Offline
            A Offline
            arkiboys
            wrote on last edited by
            #5

            In that case, on the client side, to use threading, I can use background worker? and not manually creating threads like thread t = new thread(...)? Thanks

            P 1 Reply Last reply
            0
            • A arkiboys

              In that case, on the client side, to use threading, I can use background worker? and not manually creating threads like thread t = new thread(...)? Thanks

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              arkiboys wrote:

              on the client side, to use threading, I can use background worker

              Yes.

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

              A 1 Reply Last reply
              0
              • P Pete OHanlon

                arkiboys wrote:

                on the client side, to use threading, I can use background worker

                Yes.

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                A Offline
                A Offline
                arkiboys
                wrote on last edited by
                #7

                I see. So in silverlight, I do not need to learn how to do manual threading as long as I know backgroundworker process? Thanks

                P 1 Reply Last reply
                0
                • A arkiboys

                  I see. So in silverlight, I do not need to learn how to do manual threading as long as I know backgroundworker process? Thanks

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  That's correct. Learning manual threading is good knowledge to have, it will make you a better coder, but it isn't absolutely necessary.

                  Forgive your enemies - it messes with their heads

                  My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                  A 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    That's correct. Learning manual threading is good knowledge to have, it will make you a better coder, but it isn't absolutely necessary.

                    Forgive your enemies - it messes with their heads

                    My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                    A Offline
                    A Offline
                    arkiboys
                    wrote on last edited by
                    #9

                    I see. This is now clear. Thanks

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups