1 instantiation of AspireExportData
Aspire.TypeSystem (1)
AttributeDataReader.cs (1)
239
return new
AspireExportData
42 references to AspireExportData
Aspire.Hosting.RemoteHost (18)
AtsCapabilityScanner.cs (18)
326
foreach (
var
assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly))
375
var
typeExportAttr = GetAspireExportAttribute(type);
420
var
exportAttr = GetAspireExportAttribute(method);
1032
AspireExportData
exportAttr)
1539
AspireExportData
? assemblyExportAttr = null)
1556
var
typeExportAttr = assemblyExportAttr ?? GetAspireExportAttribute(contextType);
1584
var
memberExportAttr = GetAspireExportAttribute(property);
1808
var
memberExportAttr = GetAspireExportAttribute(method);
1949
var
memberExportAttr = GetAspireExportAttribute(property);
1975
AspireExportData
exportAttr,
3188
private static
AspireExportData
? GetAspireExportAttribute(Type type)
3193
private static
AspireExportData
? GetAspireExportAttribute(MethodInfo method)
3203
var
attr = AttributeDataReader.GetAspireExportData(type);
3212
var
attr = AttributeDataReader.GetAspireExportData(type);
3239
private static bool ShouldExportMember(bool isPublic, bool exposeAll,
AspireExportData
? exportAttr)
3254
private static
AspireExportData
? GetAspireExportAttribute(PropertyInfo property)
3371
foreach (
var
export in AttributeDataReader.GetAspireExportDataAll(assembly))
3907
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));
134
var
result = AttributeDataReader.GetAspireExportData(method);
144
var
result = AttributeDataReader.GetAspireExportData(typeof(OfficialMethodsResource));
155
var
result = AttributeDataReader.GetAspireExportData(method);
Aspire.TypeSystem (18)
AttributeDataReader.cs (18)
25
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="type"/>, if present.
27
public static
AspireExportData
? GetAspireExportData(Type type)
28
=> FindSingleAttribute<
AspireExportData
>(type.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
31
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="method"/>, if present.
33
public static
AspireExportData
? GetAspireExportData(MethodInfo method)
34
=> FindSingleAttribute<
AspireExportData
>(method.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
37
/// Gets <see cref="
AspireExportData
"/> from the specified <paramref name="property"/>, if present.
39
public static
AspireExportData
? GetAspireExportData(PropertyInfo property)
40
=> FindSingleAttribute<
AspireExportData
>(property.GetCustomAttributesData(), AspireExportAttributeFullName, ParseAspireExportData);
43
/// Gets all <see cref="
AspireExportData
"/> entries from the specified <paramref name="assembly"/>.
45
public static IEnumerable<
AspireExportData
> GetAspireExportDataAll(Assembly assembly)
170
private static
AspireExportData
ParseAspireExportData(CustomAttributeData data)
206
case nameof(
AspireExportData
.Type):
212
case nameof(
AspireExportData
.Description):
215
case nameof(
AspireExportData
.MethodName):
218
case nameof(
AspireExportData
.ExposeProperties):
224
case nameof(
AspireExportData
.ExposeMethods):
230
case nameof(
AspireExportData
.RunSyncOnBackgroundThread):