OnAssemblyLoad

OnAssemblyLoad

Anonymous
Not applicable
626 Views
3 Replies
Message 1 of 4

OnAssemblyLoad

Anonymous
Not applicable
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
0 Likes
627 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
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
0 Likes
Message 3 of 4

Anonymous
Not applicable
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
0 Likes
Message 4 of 4

Anonymous
Not applicable
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
0 Likes