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. Web Development
  3. ASP.NET
  4. worker process with single to instance

worker process with single to instance

Scheduled Pinned Locked Moved ASP.NET
csharpwcfwindows-adminquestion
4 Posts 2 Posters 1 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
    anishkannan
    wrote on last edited by
    #1

    In my application i have to use singleton class.. and also enough single worker process. case is, when i start a application, it has created then working and if have any crash occurred, worker process created new one so it(singleton object) has been created again.. now i want to modify this single object getting entire( worker process).. my idea is 1) Can we create separate service for single instance application for processing. with service to iis communication via tcp using wcf. or 2) Can we assign that object to httpContext for keeping object to entire application. if i used this, its applicable all webservice method (ajax callback).. please clarify Any other idea?? please give proper idea for this concept..

    N 1 Reply Last reply
    0
    • A anishkannan

      In my application i have to use singleton class.. and also enough single worker process. case is, when i start a application, it has created then working and if have any crash occurred, worker process created new one so it(singleton object) has been created again.. now i want to modify this single object getting entire( worker process).. my idea is 1) Can we create separate service for single instance application for processing. with service to iis communication via tcp using wcf. or 2) Can we assign that object to httpContext for keeping object to entire application. if i used this, its applicable all webservice method (ajax callback).. please clarify Any other idea?? please give proper idea for this concept..

      N Offline
      N Offline
      n podbielski
      wrote on last edited by
      #2

      Use IoC container and inject this singleton instance wherever you need it.

      No more Mister Nice Guy... >: |

      A 1 Reply Last reply
      0
      • N n podbielski

        Use IoC container and inject this singleton instance wherever you need it.

        No more Mister Nice Guy... >: |

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

        IOC Container is new to me.. can you give some article related with web app.. i have doubt with this, it is applicable to asp.net web application ( page ) and also framework3.5

        N 1 Reply Last reply
        0
        • A anishkannan

          IOC Container is new to me.. can you give some article related with web app.. i have doubt with this, it is applicable to asp.net web application ( page ) and also framework3.5

          N Offline
          N Offline
          n podbielski
          wrote on last edited by
          #4

          Why not? Try this maybe. stefanoricciardi.com/2011/01/21/ninject-mini-tutorial-part-1/[^] It's so easy that is hard to find any tutorials. Try also ninject documentation. And wikipedia on IoC and DI. I using this container because it is hosted on nuget. Just add the package and it works. :)

          No more Mister Nice Guy... >: |

          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