Esempio n. 1
0
        //public AddinEngine() : this(AddinOptions.Create()) { }

        public AddinEngine(AddinOptions addinOptions)
        {
            _addinRelationManager   = new AddinRelationManager();
            _addinFramework         = new AddinFramework(addinOptions);
            _assemblyResolver       = new RuntimeAssemblyResolver(_addinFramework);
            _runtimeExtensionLoader = new RuntimeExtensionLoader(_assemblyResolver, _addinFramework.ExtensionPointFactory, _addinFramework.ExtensionBuilderFactory);
        }
Esempio n. 2
0
        /// <summary>
        /// Create an <see cref="Addin"/> instance.
        /// </summary>
        /// <param name="addinEngine"></param>
        /// <param name="addinFramework"></param>
        /// <param name="addinRecord"></param>
        internal Addin(AddinEngine addinEngine, AddinFramework addinFramework, AddinRecord addinRecord)
        {
            _addinEngine = addinEngine;
            _addinRecord = addinRecord;

            _addinContext   = new DefaultAddinContext(addinFramework, this);
            _addinRuntime   = new AddinRuntime(addinEngine.RuntimeAssemblyResolver, this);
            _addinFile      = new AddinFile(addinRecord);
            _addinExtension = new AddinExtension(addinRecord, addinEngine, _addinContext);
        }