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