In the configuration file of a DLL, is it possible to have 2 different extension types at the same time? I'd like to be able to create menu items and also trigger from change order events. To create the menu I need <extensionType>VaultClient</extensionType> and to hook into the change order events I need <extensionType>WebService</extensionType>.
Can I do both at the same time or do I have to breakout each functionality into 2 different DLLs?
Thanks in advance.
Solved! Go to Solution.
Solved by Daniel.Du. Go to Solution.
I thought it is safe to seperate them, but after checking with engineering team, actually it is possible to combine them together, you can have multipul <extension> tag in vcet.config file, as demoed in JobProcessorApiSamples of SDK, the vcet.config is as below:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectivity.ExtensionSettings3>
<extension
interface="Autodesk.Connectivity.Explorer.Extensibility.IExplorerExtension, Autodesk.Connectivity.Explorer.Extensibility, Version=18.0.0.0, Culture=neutral, PublicKeyToken=aa20f34aedd220e1"
type="JobProcessorApiSamples.QueuePublishJobCommandExtension, JobProcessorApiSamples">
</extension>
<extension
interface="Autodesk.Connectivity.JobProcessor.Extensibility.IJobHandler, Autodesk.Connectivity.JobProcessor.Extensibility, Version=18.0.0.0, Culture=neutral, PublicKeyToken=aa20f34aedd220e1"
type="JobProcessorApiSamples.FolderPublishJobHandler, JobProcessorApiSamples">
<setting key="JobType1" value="MyCompany.File.Publish"/>
</extension>
</connectivity.ExtensionSettings3>
</configuration>