2 instantiations of TemplateConstraintInfo
Microsoft.TemplateEngine.Edge (2)
_generated\21\TemplateCacheJsonSerializerContext.TemplateConstraintInfo.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo((string)args[0], (string)args[1]),
Settings\TemplateInfoReader.cs (1)
131constraints.Add(new TemplateConstraintInfo(type!, item.ToString(nameof(TemplateConstraintInfo.Args))));
52 references to TemplateConstraintInfo
Microsoft.TemplateEngine.Abstractions (2)
Constraints\TemplateConstraintInfo.cs (1)
12/// Creates a new instance of <see cref="TemplateConstraintInfo"/>.
ITemplateMetadata.cs (1)
92IReadOnlyList<TemplateConstraintInfo> Constraints { get; }
Microsoft.TemplateEngine.Cli (1)
CliTemplateInfo.cs (1)
83public IReadOnlyList<TemplateConstraintInfo> Constraints => _templateInfo.Constraints;
Microsoft.TemplateEngine.Edge (45)
_generated\21\TemplateCacheJsonSerializerContext.TemplateConstraintInfo.g.cs (19)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>? _TemplateConstraintInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> TemplateConstraintInfo 22get => _TemplateConstraintInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>)Options.GetTypeInfo(typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> Create_TemplateConstraintInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo), 58Getter = static obj => ((global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)obj).Type, 66AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 77DeclaringType = typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo), 79Getter = static obj => ((global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)obj).Args, 87AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo).GetProperty("Args", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 97private void TemplateConstraintInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo? value) 107string __value_Type = ((global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)value).Type; 112string __value_Args = ((global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)value).Args;
_generated\30\TemplateCacheJsonSerializerContext.TemplateInfo.g.cs (4)
507var info22 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> 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), 525properties[22] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>(options, info22); 643global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> __value_Constraints = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Constraints;
_generated\35\TemplateCacheJsonSerializerContext.IReadOnlyListTemplateConstraintInfo.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>? _IReadOnlyListTemplateConstraintInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> IReadOnlyListTemplateConstraintInfo 22get => _IReadOnlyListTemplateConstraintInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> Create_IReadOnlyListTemplateConstraintInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>, global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>(options, info); 45private void IReadOnlyListTemplateConstraintInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>? value) 55foreach (global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo element in value)
_generated\44\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
26if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)) 82if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>))
FilterableTemplateInfo.cs (1)
79IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints => _source?.Constraints ?? [];
Settings\TemplateInfo.cs (1)
240public IReadOnlyList<TemplateConstraintInfo> Constraints { get; private set; } = [];
Settings\TemplateInfoReader.cs (5)
123List<TemplateConstraintInfo> constraints = new List<TemplateConstraintInfo>(); 126string? type = item.ToString(nameof(TemplateConstraintInfo.Type)); 129throw new ArgumentException($"{nameof(entry)} has {nameof(info.Constraints)} property which item doesn't have {nameof(TemplateConstraintInfo.Type)}.", nameof(entry)); 131constraints.Add(new TemplateConstraintInfo(type!, item.ToString(nameof(TemplateConstraintInfo.Args))));
TemplateConstraintManager.cs (1)
186foreach (var constraint in template.Constraints)
Microsoft.TemplateEngine.Utils (2)
IScanTemplateInfoExtensions.cs (1)
86public IReadOnlyList<TemplateConstraintInfo> Constraints => _templateInfo.Constraints;
WellKnownSearchFilters.cs (1)
245foreach (var constraint in matchingConstraints)
Microsoft.TemplateSearch.Common (2)
Abstractions\TemplateSearchData.cs (1)
106IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints => TemplateInfo.Constraints;
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (1)
146IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints => [];