1 instantiation of AspireExportData
Aspire.TypeSystem (1)
AttributeDataReader.cs (1)
276
return new
AspireExportData
42 references to AspireExportData
Aspire.Hosting.RemoteHost (18)
AtsCapabilityScanner.cs (18)
400
foreach (
var
assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly))
449
var
typeExportAttr = GetAspireExportAttribute(type);
494
var
exportAttr = GetAspireExportAttribute(method);
1106
AspireExportData
exportAttr)
1613
AspireExportData
? assemblyExportAttr = null)
1630
var
typeExportAttr = assemblyExportAttr ?? GetAspireExportAttribute(contextType);
1658
var
memberExportAttr = GetAspireExportAttribute(property);
1885
var
memberExportAttr = GetAspireExportAttribute(method);
2028
var
memberExportAttr = GetAspireExportAttribute(property);
2054
AspireExportData
exportAttr,
3270
private static
AspireExportData
? GetAspireExportAttribute(Type type)
3275
private static
AspireExportData
? GetAspireExportAttribute(MethodInfo method)
3285
var
attr = AttributeDataReader.GetAspireExportData(type);
3294
var
attr = AttributeDataReader.GetAspireExportData(type);
3321
private static bool ShouldExportMember(bool isPublic, bool exposeAll,
AspireExportData
? exportAttr)
3336
private static
AspireExportData
? GetAspireExportAttribute(PropertyInfo property)
3453
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
3989
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)
207
private static
AspireExportData
ParseAspireExportData(CustomAttributeData data)
243
case nameof(
AspireExportData
.Type):
249
case nameof(
AspireExportData
.Description):
252
case nameof(
AspireExportData
.MethodName):
255
case nameof(
AspireExportData
.ExposeProperties):
261
case nameof(
AspireExportData
.ExposeMethods):
267
case nameof(
AspireExportData
.RunSyncOnBackgroundThread):