1 instantiation of AspireExportData
Aspire.TypeSystem (1)
AttributeDataReader.cs (1)
282
return new
AspireExportData
60 references to AspireExportData
Aspire.Hosting.Native.CodeGeneration (18)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (18)
403
foreach (
var
assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly))
452
var
typeExportAttr = GetAspireExportAttribute(type);
497
var
exportAttr = GetAspireExportAttribute(method);
1112
AspireExportData
exportAttr)
1626
AspireExportData
? assemblyExportAttr = null)
1643
var
typeExportAttr = assemblyExportAttr ?? GetAspireExportAttribute(contextType);
1671
var
memberExportAttr = GetAspireExportAttribute(property);
1898
var
memberExportAttr = GetAspireExportAttribute(method);
2041
var
memberExportAttr = GetAspireExportAttribute(property);
2067
AspireExportData
exportAttr,
3304
private static
AspireExportData
? GetAspireExportAttribute(Type type)
3309
private static
AspireExportData
? GetAspireExportAttribute(MethodInfo method)
3319
var
attr = AttributeDataReader.GetAspireExportData(type);
3328
var
attr = AttributeDataReader.GetAspireExportData(type);
3355
private static bool ShouldExportMember(bool isPublic, bool exposeAll,
AspireExportData
? exportAttr)
3370
private static
AspireExportData
? GetAspireExportAttribute(PropertyInfo property)
3487
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
4023
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
Aspire.Hosting.RemoteHost (18)
AtsCapabilityScanner.cs (18)
403
foreach (
var
assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly))
452
var
typeExportAttr = GetAspireExportAttribute(type);
497
var
exportAttr = GetAspireExportAttribute(method);
1112
AspireExportData
exportAttr)
1626
AspireExportData
? assemblyExportAttr = null)
1643
var
typeExportAttr = assemblyExportAttr ?? GetAspireExportAttribute(contextType);
1671
var
memberExportAttr = GetAspireExportAttribute(property);
1898
var
memberExportAttr = GetAspireExportAttribute(method);
2041
var
memberExportAttr = GetAspireExportAttribute(property);
2067
AspireExportData
exportAttr,
3304
private static
AspireExportData
? GetAspireExportAttribute(Type type)
3309
private static
AspireExportData
? GetAspireExportAttribute(MethodInfo method)
3319
var
attr = AttributeDataReader.GetAspireExportData(type);
3328
var
attr = AttributeDataReader.GetAspireExportData(type);
3355
private static bool ShouldExportMember(bool isPublic, bool exposeAll,
AspireExportData
? exportAttr)
3370
private static
AspireExportData
? GetAspireExportAttribute(PropertyInfo property)
3487
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
4023
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
Aspire.Hosting.RemoteHost.Tests (6)
AttributeDataReaderTests.cs (6)
30
var
result = AttributeDataReader.GetAspireExportData(method);
41
var
result = AttributeDataReader.GetAspireExportData(method);
49
var
result = AttributeDataReader.GetAspireExportData(typeof(ThirdPartyResource));
174
var
result = AttributeDataReader.GetAspireExportData(method);
184
var
result = AttributeDataReader.GetAspireExportData(typeof(OfficialMethodsResource));
195
var
result = AttributeDataReader.GetAspireExportData(method);
Aspire.TypeSystem (18)
AttributeDataReader.cs (18)
26
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="type"/>, if present.
28
public static
AspireExportData
? GetAspireExportData(Type type)
29
=> FindSingleAttribute<
AspireExportData
>(type.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
32
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="method"/>, if present.
34
public static
AspireExportData
? GetAspireExportData(MethodInfo method)
35
=> FindSingleAttribute<
AspireExportData
>(method.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
38
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="property"/>, if present.
40
public static
AspireExportData
? GetAspireExportData(PropertyInfo property)
41
=> FindSingleAttribute<
AspireExportData
>(property.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
44
/// Gets all <see cref="
AspireExportData
"/> entries from the specified <paramref name="assembly"/>.
46
public static IEnumerable<
AspireExportData
> GetAspireExportDataAll(Assembly assembly)
213
private static
AspireExportData
ParseAspireExportData(CustomAttributeData data)
249
case nameof(
AspireExportData
.Type):
255
case nameof(
AspireExportData
.Description):
258
case nameof(
AspireExportData
.MethodName):
261
case nameof(
AspireExportData
.ExposeProperties):
267
case nameof(
AspireExportData
.ExposeMethods):
273
case nameof(
AspireExportData
.RunSyncOnBackgroundThread):