2 instantiations of TemplateInfo
Microsoft.TemplateEngine.Edge (2)
Settings\TemplateCache.cs (1)
63templates.Add(new TemplateInfo(chosenTemplate.Template, loc, hostFile));
Settings\TemplateInfoReader.cs (1)
26TemplateInfo info = new TemplateInfo(identity, name, shortNames, mountPointUri, configPlace)
128 references to TemplateInfo
Microsoft.TemplateEngine.Edge (128)
_generated\29\TemplateCacheJsonSerializerContext.TemplateCache.g.cs (4)
92var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> 107AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("TemplateInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>), global::System.Array.Empty<global::System.Type>(), null), 110properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>(options, info2); 159global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> __value_TemplateInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).TemplateInfo;
_generated\30\TemplateCacheJsonSerializerContext.TemplateInfo.g.cs (99)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>? _TemplateInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> TemplateInfo 22get => _TemplateInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>)Options.GetTypeInfo(typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> Create_TemplateInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 58Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ParameterDefinitions, 66AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.TemplateEngine.Abstractions.Parameters.IParameterDefinitionSet), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 99DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 101Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).MountPointUri, 109AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("MountPointUri", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 120DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 122Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Author, 130AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Author", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 140DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 142Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Classifications, 150AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Classifications", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 162DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 164Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).DefaultName, 172AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("DefaultName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 182DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 184Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Description, 192AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 202DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 204Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Identity, 212AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 223DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 225Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).GeneratorId, 233AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("GeneratorId", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null), 243DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 245Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).GroupIdentity, 253AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("GroupIdentity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 263DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 265Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Precedence, 273AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Precedence", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 283DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 285Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Name, 293AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 304DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 306Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ShortNameList, 314AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ShortNameList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 325DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 327Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).PreferDefaultName, 335AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("PreferDefaultName", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 345DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 347Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ConfigPlace, 355AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 366DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 368Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).LocaleConfigPlace, 376AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("LocaleConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 386DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 388Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).HostConfigPlace, 396AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("HostConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 406DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 408Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ThirdPartyNotices, 416AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ThirdPartyNotices", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 426DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 428Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).BaselineInfo, 436AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("BaselineInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo>), global::System.Array.Empty<global::System.Type>(), null), 448DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 450Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).TagsCollection, 458AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("TagsCollection", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 470DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 472Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).HostData, 480AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("HostData", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 490DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 492Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).PostActions, 500AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("PostActions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Guid>), global::System.Array.Empty<global::System.Type>(), null), 512DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 514Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Constraints, 522AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Constraints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>), global::System.Array.Empty<global::System.Type>(), null), 534private void TemplateInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo? value) 544global::Microsoft.TemplateEngine.Abstractions.Parameters.IParameterDefinitionSet __value_ParameterDefinitions = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ParameterDefinitions; 550string __value_MountPointUri = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).MountPointUri; 555string __value_Author = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Author; 560global::System.Collections.Generic.IReadOnlyList<string> __value_Classifications = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Classifications; 566string __value_DefaultName = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).DefaultName; 571string __value_Description = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Description; 576string __value_Identity = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Identity; 581writer.WriteString(PropName_GeneratorId, ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).GeneratorId); 582string __value_GroupIdentity = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).GroupIdentity; 587writer.WriteNumber(PropName_Precedence, ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Precedence); 588string __value_Name = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Name; 593global::System.Collections.Generic.IReadOnlyList<string> __value_ShortNameList = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ShortNameList; 599writer.WriteBoolean(PropName_PreferDefaultName, ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).PreferDefaultName); 600string __value_ConfigPlace = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ConfigPlace; 605string __value_LocaleConfigPlace = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).LocaleConfigPlace; 610string __value_HostConfigPlace = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).HostConfigPlace; 615string __value_ThirdPartyNotices = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ThirdPartyNotices; 620global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo> __value_BaselineInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).BaselineInfo; 626global::System.Collections.Generic.IReadOnlyDictionary<string, string> __value_TagsCollection = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).TagsCollection; 632string __value_HostData = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).HostData; 637global::System.Collections.Generic.IReadOnlyList<global::System.Guid> __value_PostActions = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).PostActions; 643global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> __value_Constraints = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Constraints;
_generated\36\TemplateCacheJsonSerializerContext.IReadOnlyListTemplateInfo.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>? _IReadOnlyListTemplateInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> IReadOnlyListTemplateInfo 22get => _IReadOnlyListTemplateInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> Create_IReadOnlyListTemplateInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>, global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>(options, info); 45private void IReadOnlyListTemplateInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>? value) 55foreach (global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo element in value)
_generated\44\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
62if (type == typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)) 86if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>))
Settings\TemplateCache.cs (6)
54var templates = new List<TemplateInfo>(); 66Version = Settings.TemplateInfo.CurrentVersion; 108List<TemplateInfo> templateList = new List<TemplateInfo>(); 116templateList.Add(Settings.TemplateInfo.FromJObject(entryObj)); 131public IReadOnlyList<TemplateInfo> TemplateInfo { get; }
Settings\TemplateInfo.cs (1)
242public static TemplateInfo FromJObject(JsonObject entry)
Settings\TemplateInfoReader.cs (2)
17internal static TemplateInfo FromJObject(JsonObject entry) 26TemplateInfo info = new TemplateInfo(identity, name, shortNames, mountPointUri, configPlace)
Settings\TemplatePackageManager.cs (2)
302if (!needsRebuild && cache.Version != TemplateInfo.CurrentVersion) 304_logger.LogDebug($"Template cache file version is {cache.Version}, but template engine is {TemplateInfo.CurrentVersion}, rebuilding cache.");