internal UnaffectedExtensionPointResolution(AddinResolution declaringAddin, ExtensionPointRecord old)
     : base(declaringAddin)
 {
     _old = old;
 }
 internal ExtensionPointResolution(AddinResolution declaringAddin) : base(declaringAddin)
 {
 }
 protected BaseExtensionPointResolution(AddinResolution declaringAddin) : base(declaringAddin)
 {
 }
Example #4
0
 protected TypeConstrainedResolvable(AddinResolution declaringAddin) : base(declaringAddin)
 {
 }
Example #5
0
 protected Resolvable(AddinResolution declaringAddin)
 {
     _declaringAddin = declaringAddin;
 }
Example #6
0
        static AddinRecord ToPersistentObject(AddinResolution adnResolution)
        {
            var addinFilePack    = ToAddinFilePack(adnResolution);
            var addinIndexRecord = new AddinIndexRecord(addinFilePack)
            {
                RunningStatus = adnResolution.RunningStatus,
                AddinHeader   = ToPersistentObject(adnResolution.AddinHeader),
            };
            var addinBodyRecord = new AddinBodyRecord(adnResolution.Guid);

            if (adnResolution.ReferencedAssemblySets != null)
            {
                foreach (var referencedAssemblySet in adnResolution.ReferencedAssemblySets)
                {
                    addinIndexRecord.AddReferencedAssembly(new ReferencedAssemblyRecord
                    {
                        Uid     = referencedAssemblySet.Uid,
                        Version = referencedAssemblySet.Version
                    });
                }
            }

            if (adnResolution.ExtendedAddins != null)
            {
                foreach (var extendedAddin in adnResolution.ExtendedAddins)
                {
                    addinIndexRecord.AddExtendedAddin(new ExtendedAddinRecord
                    {
                        Uid     = extendedAddin.AddinId.Uid,
                        Version = extendedAddin.AddinHeader.Version
                    });
                }
            }

            if (adnResolution.ExtendedExtensionPoints != null)
            {
                foreach (var extendedExtensionPoint in adnResolution.ExtendedExtensionPoints)
                {
                    addinIndexRecord.AddExtendedExtensionPoint(extendedExtensionPoint.Uid);
                }
            }

            if (adnResolution.ExtensionPoints != null)
            {
                foreach (var extensionPoint in adnResolution.ExtensionPoints)
                {
                    //if (extensionPoint.Children == null)
                    //    continue;
                    var epRecord = extensionPoint.ToRecord();
                    addinIndexRecord.AddExtensionPoint(ToBaseObject(epRecord));
                    addinBodyRecord.AddExtensionPoint(epRecord);
                }
            }

            if (adnResolution.ExtensionBuilderGroups != null)
            {
                foreach (var extensionBuilderGroup in adnResolution.ExtensionBuilderGroups)
                {
                    addinBodyRecord.AddExtensionBuilderGroup(extensionBuilderGroup.ToRecord());
                }
            }

            if (adnResolution.ExtensionGroups != null)
            {
                foreach (var extensionGroup in adnResolution.ExtensionGroups)
                {
                    addinBodyRecord.AddExtensionGroup(extensionGroup.ToRecord());
                }
            }

            return(new AddinRecord {
                AddinIndex = addinIndexRecord, AddinBody = addinBodyRecord
            });
        }
Example #7
0
 internal static AssemblyResolution CreateAddinAssembly(AddinResolution addin, AssemblyFileResolution assemblyFile)
 {
     return(new AssemblyResolution(addin, assemblyFile));
 }