1 instantiation of AspireExportData
Aspire.TypeSystem (1)
AttributeDataReader.cs (1)
197
return new
AspireExportData
40 references to AspireExportData
Aspire.Hosting.RemoteHost (16)
AtsCapabilityScanner.cs (16)
288
foreach (
var
assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly))
335
var
typeExportAttr = GetAspireExportAttribute(type);
380
var
exportAttr = GetAspireExportAttribute(method);
915
AspireExportData
exportAttr)
1047
var
typeExportAttr = GetAspireExportAttribute(contextType);
1067
var
memberExportAttr = GetAspireExportAttribute(property);
1290
var
memberExportAttr = GetAspireExportAttribute(method);
1411
AspireExportData
exportAttr,
2508
private static
AspireExportData
? GetAspireExportAttribute(Type type)
2513
private static
AspireExportData
? GetAspireExportAttribute(MethodInfo method)
2523
var
attr = AttributeDataReader.GetAspireExportData(type);
2532
var
attr = AttributeDataReader.GetAspireExportData(type);
2557
private static bool ShouldExportMember(bool isPublic, bool exposeAll,
AspireExportData
? exportAttr)
2572
private static
AspireExportData
? GetAspireExportAttribute(PropertyInfo property)
2663
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
2757
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));
115
var
result = AttributeDataReader.GetAspireExportData(method);
125
var
result = AttributeDataReader.GetAspireExportData(typeof(OfficialMethodsResource));
136
var
result = AttributeDataReader.GetAspireExportData(method);
Aspire.TypeSystem (18)
AttributeDataReader.cs (18)
23
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="type"/>, if present.
25
public static
AspireExportData
? GetAspireExportData(Type type)
26
=> FindSingleAttribute<
AspireExportData
>(type.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
29
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="method"/>, if present.
31
public static
AspireExportData
? GetAspireExportData(MethodInfo method)
32
=> FindSingleAttribute<
AspireExportData
>(method.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
35
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="property"/>, if present.
37
public static
AspireExportData
? GetAspireExportData(PropertyInfo property)
38
=> FindSingleAttribute<
AspireExportData
>(property.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
41
/// Gets all <see cref="
AspireExportData
"/> entries from the specified <paramref name="assembly"/>.
43
public static IEnumerable<
AspireExportData
> GetAspireExportDataAll(Assembly assembly)
128
private static
AspireExportData
ParseAspireExportData(CustomAttributeData data)
164
case nameof(
AspireExportData
.Type):
170
case nameof(
AspireExportData
.Description):
173
case nameof(
AspireExportData
.MethodName):
176
case nameof(
AspireExportData
.ExposeProperties):
182
case nameof(
AspireExportData
.ExposeMethods):
188
case nameof(
AspireExportData
.RunSyncOnBackgroundThread):