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