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)
94var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> 109AttributeProviderFactory = 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), 112properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>(options, info2); 161global::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> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 60Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ParameterDefinitions, 68AttributeProviderFactory = 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), 80DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 101DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 103Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).MountPointUri, 111AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("MountPointUri", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 122DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 124Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Author, 132AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Author", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 144Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Classifications, 152AttributeProviderFactory = 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), 164DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 166Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).DefaultName, 174AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("DefaultName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 184DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 186Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Description, 194AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 204DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 206Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Identity, 214AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 225DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 227Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).GeneratorId, 235AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("GeneratorId", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null), 245DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 247Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).GroupIdentity, 255AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("GroupIdentity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 265DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 267Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Precedence, 275AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Precedence", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 285DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 287Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Name, 295AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 306DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 308Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ShortNameList, 316AttributeProviderFactory = 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), 327DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 329Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).PreferDefaultName, 337AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("PreferDefaultName", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 347DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 349Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ConfigPlace, 357AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 368DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 370Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).LocaleConfigPlace, 378AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("LocaleConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 388DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 390Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).HostConfigPlace, 398AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("HostConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 408DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 410Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).ThirdPartyNotices, 418AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ThirdPartyNotices", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 428DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 430Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).BaselineInfo, 438AttributeProviderFactory = 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), 450DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 452Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).TagsCollection, 460AttributeProviderFactory = 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), 472DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 474Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).HostData, 482AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("HostData", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 492DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 494Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).PostActions, 502AttributeProviderFactory = 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), 514DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo), 516Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)obj).Constraints, 524AttributeProviderFactory = 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), 536private void TemplateInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo? value) 546global::Microsoft.TemplateEngine.Abstractions.Parameters.IParameterDefinitionSet __value_ParameterDefinitions = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ParameterDefinitions; 552string __value_MountPointUri = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).MountPointUri; 557string __value_Author = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Author; 562global::System.Collections.Generic.IReadOnlyList<string> __value_Classifications = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Classifications; 568string __value_DefaultName = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).DefaultName; 573string __value_Description = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Description; 578string __value_Identity = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Identity; 583writer.WriteString(PropName_GeneratorId, ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).GeneratorId); 584string __value_GroupIdentity = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).GroupIdentity; 589writer.WriteNumber(PropName_Precedence, ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Precedence); 590string __value_Name = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Name; 595global::System.Collections.Generic.IReadOnlyList<string> __value_ShortNameList = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ShortNameList; 601writer.WriteBoolean(PropName_PreferDefaultName, ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).PreferDefaultName); 602string __value_ConfigPlace = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ConfigPlace; 607string __value_LocaleConfigPlace = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).LocaleConfigPlace; 612string __value_HostConfigPlace = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).HostConfigPlace; 617string __value_ThirdPartyNotices = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ThirdPartyNotices; 622global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo> __value_BaselineInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).BaselineInfo; 628global::System.Collections.Generic.IReadOnlyDictionary<string, string> __value_TagsCollection = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).TagsCollection; 634string __value_HostData = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).HostData; 639global::System.Collections.Generic.IReadOnlyList<global::System.Guid> __value_PostActions = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).PostActions; 645global::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>> 37jsonTypeInfo = 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); 47private void IReadOnlyListTemplateInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>? value) 57foreach (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.");