Q : I’m using ShapeAppBasicCSharp sample. I'm pretty clear on using Adapters to pass types that are not in VSTA proxy. Not clear on how to mix a proxied type with a custom adapter type. In this sample,I’ll start simply by passing the current Document as IElement through custom adapter...
ShapeAppBasicCSharpGenericCollectionIndexAdapter sample We’ll assume that you’ve looked over the previous sample from part 2 This sample will demonstrate how to pass a System.Collections.Generic.IList<ShapeAppCSharp. Document > instance, as a ‘by reference’ parameter, from...
Posted to
Gary Depue's VSTA Blog
by
Gary
on
01-26-2009
Filed under:
Filed under: Addin.Contract, Contract, Adapter, VSTA 2.0, ProxyResolve, AdapterResolve, System.AddIn, pipeline, System.AddIn.Pipeline.CollectionAdapters, ByRef, converters, RemoteObjectAdapters
Add-in activation Host app calls System.AddIn.Hosting.AddInToken.Activate. System.AddIn Activate, loads the Add-in.dll creating addin instance that implements the Add-In (entrypoint) interface. Next, System.AddIn loads AddInSideAdapter.dll creating Add-In side Automation Adapter and passes it the AddIn...
ShapeAppBasicCSharpGenericCollectionAdapter sample This sample shows how to pass a System.Collections.Generic. IList <ShapeAppCSharp. Document > instance from the ShapeAppBasicCSharp host application to its add-in by extending the VSTA pipeline with adapters The list provided to the add-in is a...
The VSTA team provides an overview on how to hook custom adapters with VSTA pipeline here
VSTA's run-time assemblies implement 2-way, version-resilient, secure, and robust communication between your host application object and customization macros (addins). At runtime, addins communicate through a proxy layer with the host application (and vice-versa), utilizing contracts based on System...