• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    *Tony Tanzillo

    OnAssemblyLoad

    68 Views, 3 Replies
    09-01-2005 03:10 PM
    It would be helpful if there was an event fired when
    a managed extension application is loaded. I see
    module events, but none for managed assemblies that
    are extension applications.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com
    Please use plain text.
    *Albert Szilvasy

    Re: OnAssemblyLoad

    09-01-2005 05:27 PM in reply to: *Tony Tanzillo
    You can listen to assemblies loaded AppDomain.AssemblyLoad event and do what
    you need there. The definition of ExtensionApplication is a bit murky:
    I can imaging useful apps that don't have an type that implements
    IExtensionApplication or any commands. Stricly speaking they don't even have
    to have a reference to any of our assemblies.

    Albert

    "Tony Tanzillo" wrote in message
    news:4945939@discussion.autodesk.com...
    It would be helpful if there was an event fired when
    a managed extension application is loaded. I see
    module events, but none for managed assemblies that
    are extension applications.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com
    Please use plain text.
    *Tony Tanzillo

    Re: OnAssemblyLoad

    09-02-2005 12:31 AM in reply to: *Tony Tanzillo
    Thanks. I looked at that. What I was mainly interested in
    are managed apps loaded via the ObjectARX registry loading
    mechansim, or NETLOAD.

    The complication with AssemblyLoad is that it fires for every
    loaded assembly, including referenced ones, to any depth.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com

    "Albert Szilvasy" wrote in message news:4946066@discussion.autodesk.com...
    You can listen to assemblies loaded AppDomain.AssemblyLoad event and do what
    you need there. The definition of ExtensionApplication is a bit murky:
    I can imaging useful apps that don't have an type that implements
    IExtensionApplication or any commands. Stricly speaking they don't even have
    to have a reference to any of our assemblies.

    Albert

    "Tony Tanzillo" wrote in message
    news:4945939@discussion.autodesk.com...
    It would be helpful if there was an event fired when
    a managed extension application is loaded. I see
    module events, but none for managed assemblies that
    are extension applications.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com
    Please use plain text.
    *Albert Szilvasy

    Re: OnAssemblyLoad

    09-02-2005 08:16 AM in reply to: *Tony Tanzillo
    This doesn't strike me something that would be useful. An addin can be
    referenced by another addin in which case it may get loaded implicitly. I'm
    not sure what you would do with the event but it seems to me it would have
    limited applicability.

    Albert

    "Tony Tanzillo" wrote in message
    news:4946203@discussion.autodesk.com...
    Thanks. I looked at that. What I was mainly interested in
    are managed apps loaded via the ObjectARX registry loading
    mechansim, or NETLOAD.

    The complication with AssemblyLoad is that it fires for every
    loaded assembly, including referenced ones, to any depth.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com

    "Albert Szilvasy" wrote in message
    news:4946066@discussion.autodesk.com...
    You can listen to assemblies loaded AppDomain.AssemblyLoad event and do what
    you need there. The definition of ExtensionApplication is a bit murky:
    I can imaging useful apps that don't have an type that implements
    IExtensionApplication or any commands. Stricly speaking they don't even have
    to have a reference to any of our assemblies.

    Albert

    "Tony Tanzillo" wrote in message
    news:4945939@discussion.autodesk.com...
    It would be helpful if there was an event fired when
    a managed extension application is loaded. I see
    module events, but none for managed assemblies that
    are extension applications.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com
    Please use plain text.