1 instantiation of AspireExportData
Aspire.Hosting (1)
Ats\AttributeDataReader.cs (1)
170
return new
AspireExportData
34 references to AspireExportData
Aspire.Hosting (28)
Ats\AtsCapabilityScanner.cs (14)
277
foreach (
var
assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly))
324
var
typeExportAttr = GetAspireExportAttribute(type);
369
var
exportAttr = GetAspireExportAttribute(method);
904
AspireExportData
exportAttr)
1027
var
typeExportAttr = GetAspireExportAttribute(contextType);
1047
var
memberExportAttr = GetAspireExportAttribute(property);
1270
var
memberExportAttr = GetAspireExportAttribute(method);
1391
AspireExportData
exportAttr,
2480
private static
AspireExportData
? GetAspireExportAttribute(Type type)
2485
private static
AspireExportData
? GetAspireExportAttribute(MethodInfo method)
2495
var
attr = AttributeDataReader.GetAspireExportData(type);
2504
var
attr = AttributeDataReader.GetAspireExportData(type);
2529
private static bool ShouldExportMember(bool isPublic, bool exposeAll,
AspireExportData
? exportAttr)
2544
private static
AspireExportData
? GetAspireExportAttribute(PropertyInfo property)
Ats\AttributeDataReader.cs (14)
22
internal static
AspireExportData
? GetAspireExportData(Type type)
23
=> FindSingleAttribute<
AspireExportData
>(type.GetCustomAttributesData(), s_aspireExportAttributeFullName, ParseAspireExportData);
25
internal static
AspireExportData
? GetAspireExportData(MethodInfo method)
26
=> FindSingleAttribute<
AspireExportData
>(method.GetCustomAttributesData(), s_aspireExportAttributeFullName, ParseAspireExportData);
28
internal static
AspireExportData
? GetAspireExportData(PropertyInfo property)
29
=> FindSingleAttribute<
AspireExportData
>(property.GetCustomAttributesData(), s_aspireExportAttributeFullName, ParseAspireExportData);
31
internal static IEnumerable<
AspireExportData
> GetAspireExportDataAll(Assembly assembly)
101
private static
AspireExportData
ParseAspireExportData(CustomAttributeData data)
137
case nameof(
AspireExportData
.Type):
143
case nameof(
AspireExportData
.Description):
146
case nameof(
AspireExportData
.MethodName):
149
case nameof(
AspireExportData
.ExposeProperties):
155
case nameof(
AspireExportData
.ExposeMethods):
161
case nameof(
AspireExportData
.RunSyncOnBackgroundThread):
Aspire.Hosting.Tests (6)
Ats\AttributeDataReaderTests.cs (6)
29
var
result = AttributeDataReader.GetAspireExportData(method);
40
var
result = AttributeDataReader.GetAspireExportData(method);
48
var
result = AttributeDataReader.GetAspireExportData(typeof(ThirdPartyResource));
114
var
result = AttributeDataReader.GetAspireExportData(method);
124
var
result = AttributeDataReader.GetAspireExportData(typeof(OfficialMethodsResource));
135
var
result = AttributeDataReader.GetAspireExportData(method);