4 instantiations of TemplateCache
Microsoft.TemplateEngine.Edge (4)
Settings\TemplatePackageManager.cs (4)
282_userTemplateCache = cache = new TemplateCache(_environmentSettings.Host.FileSystem.ReadObject(_paths.TemplateCacheFile)); 287cache = new TemplateCache(null); 292cache = new TemplateCache(null); 367cache = new TemplateCache(allTemplatePackages, scanResults, mountPoints, _environmentSettings);
32 references to TemplateCache
Microsoft.TemplateEngine.Edge (32)
_generated\29\TemplateCacheJsonSerializerContext.TemplateCache.g.cs (26)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache>? _TemplateCache; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache> TemplateCache 22get => _TemplateCache ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache>)Options.GetTypeInfo(typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache> Create_TemplateCache(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache), 58Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)obj).Version, 66AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache), 78Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)obj).Locale, 86AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("Locale", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 97DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache), 99Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)obj).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), 118DeclaringType = typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache), 120Getter = static obj => ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)obj).MountPointsInfo, 128AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("MountPointsInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.DateTime>), global::System.Array.Empty<global::System.Type>(), null), 139private void TemplateCacheSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache? value) 149string __value_Version = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).Version; 154string __value_Locale = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).Locale; 159global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> __value_TemplateInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).TemplateInfo; 165global::System.Collections.Generic.Dictionary<string, global::System.DateTime> __value_MountPointsInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).MountPointsInfo;
_generated\44\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
58if (type == typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache))
Settings\TemplateCacheJsonSerializerContext.cs (1)
9[JsonSerializable(typeof(TemplateCache))]
Settings\TemplatePackageManager.cs (4)
23private volatile TemplateCache? _userTemplateCache; 157var userTemplateCache = await UpdateTemplateCacheAsync(false, cancellationToken).ConfigureAwait(false); 273private async Task<TemplateCache> UpdateTemplateCacheAsync(bool needsRebuild, CancellationToken cancellationToken) 278if (_userTemplateCache is not TemplateCache cache)