Esempio n. 1
0
        protected TemplateComparisonResult IsTemplateSynchronized(ModelTemplateReference reference)
        {
            TemplateItem template;

            if (TemplateDictionary.TryGetValue(reference.Metadata.TemplateID, out template))
            {
                return(new TemplateComparisonResult(
                           template.ID.ToString(),
                           GetTemplateName(template),
                           GetModelName(reference),
                           _signatureProvider.GenerateTemplateSignature(template),
                           reference.Metadata.VersionSignature));
            }

            return(new TemplateComparisonResult(reference.Metadata.TemplateID, null, GetModelName(reference), null, reference.Metadata.VersionSignature));
        }
Esempio n. 2
0
        protected TemplateComparisonResult IsTemplateSynchronized(ModelTemplateReference reference)
        {
            TemplateItem template;
            if (TemplateDictionary.TryGetValue(reference.Metadata.TemplateID, out template))
                return new TemplateComparisonResult(
                    template.ID.ToString(),
                    GetTemplateName(template),
                    GetModelName(reference),
                    _signatureProvider.GenerateTemplateSignature(template),
                    reference.Metadata.VersionSignature);

            return new TemplateComparisonResult(reference.Metadata.TemplateID, null, GetModelName(reference), null, reference.Metadata.VersionSignature);
        }
Esempio n. 3
0
 protected static string GetModelName(ModelTemplateReference reference)
 {
     return(reference.InterfaceType.FullName + ", " + reference.InterfaceType.Assembly.GetName().Name);
 }
Esempio n. 4
0
 protected static string GetModelName(ModelTemplateReference reference)
 {
     return reference.InterfaceType.FullName + ", " + reference.InterfaceType.Assembly.GetName().Name;
 }