2 writes to TemplateInfo
Microsoft.TemplateSearch.Common (2)
Abstractions\TemplateSearchData.cs (1)
24
TemplateInfo
= new BlobStorageTemplateInfo(templateInfo);
TemplateSearchCache\TemplateSearchData.Json.cs (1)
30
TemplateInfo
= BlobStorageTemplateInfo.FromJObject(jObject);
48 references to TemplateInfo
Microsoft.TemplateSearch.Common (48)
Abstractions\TemplateSearchData.cs (25)
38
public string Identity =>
TemplateInfo
.Identity;
41
public string? GroupIdentity =>
TemplateInfo
.GroupIdentity;
44
public string Name =>
TemplateInfo
.Name;
47
public IReadOnlyList<string> ShortNameList =>
TemplateInfo
.ShortNameList;
50
bool ITemplateMetadata.PreferDefaultName =>
TemplateInfo
.PreferDefaultName;
53
public string? Author =>
TemplateInfo
.Author;
56
public string? Description =>
TemplateInfo
.Description;
59
public IReadOnlyList<string> Classifications =>
TemplateInfo
.Classifications;
62
public IReadOnlyDictionary<string, string> TagsCollection =>
TemplateInfo
.TagsCollection;
65
public IParameterDefinitionSet ParameterDefinitions =>
TemplateInfo
.ParameterDefinitions;
72
public int Precedence =>
TemplateInfo
.Precedence;
75
public string? ThirdPartyNotices =>
TemplateInfo
.ThirdPartyNotices;
78
string? ITemplateMetadata.DefaultName =>
TemplateInfo
.DefaultName;
80
Guid ITemplateLocator.GeneratorId =>
TemplateInfo
.GeneratorId;
83
string ITemplateInfo.ShortName =>
TemplateInfo
.ShortName;
86
IReadOnlyDictionary<string, ICacheTag> ITemplateInfo.Tags =>
TemplateInfo
.Tags;
89
IReadOnlyDictionary<string, ICacheParameter> ITemplateInfo.CacheParameters =>
TemplateInfo
.CacheParameters;
91
string ITemplateLocator.MountPointUri =>
TemplateInfo
.MountPointUri;
93
string ITemplateLocator.ConfigPlace =>
TemplateInfo
.ConfigPlace;
95
string? IExtendedTemplateLocator.LocaleConfigPlace =>
TemplateInfo
.LocaleConfigPlace;
97
string? IExtendedTemplateLocator.HostConfigPlace =>
TemplateInfo
.HostConfigPlace;
99
IReadOnlyDictionary<string, IBaselineInfo> ITemplateMetadata.BaselineInfo =>
TemplateInfo
.BaselineInfo;
102
bool ITemplateInfo.HasScriptRunningPostActions { get =>
TemplateInfo
.HasScriptRunningPostActions; set => throw new NotImplementedException(); }
104
IReadOnlyList<Guid> ITemplateMetadata.PostActions =>
TemplateInfo
.PostActions;
106
IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints =>
TemplateInfo
.Constraints;
TemplateSearchCache\TemplateSearchData.Json.cs (23)
58
writer.WriteStringValue(value.
TemplateInfo
.Identity);
59
if (!string.IsNullOrWhiteSpace(value.
TemplateInfo
.GroupIdentity))
62
writer.WriteStringValue(value.
TemplateInfo
.GroupIdentity);
64
if (value.
TemplateInfo
.Precedence != 0)
67
writer.WriteNumberValue(value.
TemplateInfo
.Precedence);
70
writer.WriteStringValue(value.
TemplateInfo
.Name);
73
foreach (string shortName in value.
TemplateInfo
.ShortNameList)
81
if (!string.IsNullOrWhiteSpace(value.
TemplateInfo
.Author))
84
writer.WriteStringValue(value.
TemplateInfo
.Author);
86
if (!string.IsNullOrWhiteSpace(value.
TemplateInfo
.Description))
89
writer.WriteStringValue(value.
TemplateInfo
.Description);
91
if (!string.IsNullOrWhiteSpace(value.
TemplateInfo
.ThirdPartyNotices))
94
writer.WriteStringValue(value.
TemplateInfo
.ThirdPartyNotices);
97
if (value.
TemplateInfo
.Classifications.Any())
101
foreach (string classification in value.
TemplateInfo
.Classifications)
111
if (value.
TemplateInfo
.TagsCollection.Any())
115
foreach (var tag in value.
TemplateInfo
.TagsCollection)
123
if (value.
TemplateInfo
.ParameterDefinitions.Any())
129
foreach (ITemplateParameter param in value.
TemplateInfo
.ParameterDefinitions)
177
if (value.
TemplateInfo
.BaselineInfo.Any())
180
JsonSerializer.Serialize(writer, value.
TemplateInfo
.BaselineInfo, options);
183
if (value.
TemplateInfo
.PostActions.Any())
187
foreach (Guid guid in value.
TemplateInfo
.PostActions)