Eventreceiver and Application-Domains - Sharepoint

This is a discussion on Eventreceiver and Application-Domains - Sharepoint ; Hi, what is the relationship between IIS-Applicationpools and .NET application-domains. Is there allways one appdomain per application pool? For all i'm interested if all code of Eventreceiver acting on the content behind one Applicattion are allways running in one appdomain. ...

+ Reply to Thread
Results 1 to 2 of 2

Eventreceiver and Application-Domains

  1. Default Eventreceiver and Application-Domains

    Hi,

    what is the relationship between IIS-Applicationpools and .NET
    application-domains. Is there allways one appdomain per application pool?
    For all i'm interested if all code of Eventreceiver acting on the content
    behind one Applicattion are allways running in one appdomain.

    Can static fields be used for shared data?

    Christof


  2. Default Re: Eventreceiver and Application-Domains

    There is always one app domain for any process. However, you can create
    a app domain programmatically and load assemblies into it, but I don't
    think that is done.

    Static fields can be used to common data, but be careful about using a
    synclock to update it or you will create a race condition making errors
    extremely difficult to debug.


    --
    Bryan Phillips
    MCT, MCSD, MCDBA, MCSE
    Microsoft MVP - Client Application Development
    Blog: http://bphillips76.spaces.live.com
    Web Site: http://www.composablesystems.net



    "Christof Nordiek" <cn@nospam.de> wrote in message
    news:OMU$nhuIIHA.284@TK2MSFTNGP02.phx.gbl:

    > Hi,
    >
    > what is the relationship between IIS-Applicationpools and .NET
    > application-domains. Is there allways one appdomain per application pool?
    > For all i'm interested if all code of Eventreceiver acting on the content
    > behind one Applicattion are allways running in one appdomain.
    >
    > Can static fields be used for shared data?
    >
    > Christof



+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 11-09-2007, 01:10 PM
  2. Replies: 3
    Last Post: 08-07-2007, 11:10 AM
  3. Replies: 0
    Last Post: 05-05-2006, 01:48 PM
  4. Application Domains...
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 05-18-2004, 06:26 PM
  5. Replies: 3
    Last Post: 01-05-2004, 07:50 PM