Message 1 of 8
Mutliple entry points
Not applicable
09-06-2005
05:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Was there any thought given to supporting multiple
IExtensionApplication implementations in a single
assembly, the interop?
I can clearly see good reasons why I would want to
have them. If I take code and put it in a separate
assembly that is referenced from another, each can
get control when it is loaded, by way of the fact that
AutoCAD processes assemblies from the AppDomain's
OnAssemblyLoad() handler, and treats the primary
and referenced assemblies with indifference, so each
can have its own IExtensionApplication implementation
that gets called on load/unload.
But, if I move code from several assemblies into a
single one, I have to make changes, because there
can be only a single entry point for each assembly.
I don't think I like that at all.
You might want to be wary of this, given that there
is a tool from MS that allows you to combine multiple
assemblies into a single one, and I would imagine that
given several assemblies with an implementation of IExtensionApplication, something will break if you were
to merge them into a single assembly.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
IExtensionApplication implementations in a single
assembly, the interop?
I can clearly see good reasons why I would want to
have them. If I take code and put it in a separate
assembly that is referenced from another, each can
get control when it is loaded, by way of the fact that
AutoCAD processes assemblies from the AppDomain's
OnAssemblyLoad() handler, and treats the primary
and referenced assemblies with indifference, so each
can have its own IExtensionApplication implementation
that gets called on load/unload.
But, if I move code from several assemblies into a
single one, I have to make changes, because there
can be only a single entry point for each assembly.
I don't think I like that at all.
You might want to be wary of this, given that there
is a tool from MS that allows you to combine multiple
assemblies into a single one, and I would imagine that
given several assemblies with an implementation of IExtensionApplication, something will break if you were
to merge them into a single assembly.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com