1 instantiation of AspireExportData
Aspire.Hosting (1)
Ats\AttributeDataReader.cs (1)
170return new AspireExportData
34 references to AspireExportData
Aspire.Hosting (28)
Ats\AtsCapabilityScanner.cs (14)
277foreach (var assemblyExportAttr in AttributeDataReader.GetAspireExportDataAll(assembly)) 324var typeExportAttr = GetAspireExportAttribute(type); 369var exportAttr = GetAspireExportAttribute(method); 904AspireExportData exportAttr) 1027var typeExportAttr = GetAspireExportAttribute(contextType); 1047var memberExportAttr = GetAspireExportAttribute(property); 1270var memberExportAttr = GetAspireExportAttribute(method); 1391AspireExportData exportAttr, 2480private static AspireExportData? GetAspireExportAttribute(Type type) 2485private static AspireExportData? GetAspireExportAttribute(MethodInfo method) 2495var attr = AttributeDataReader.GetAspireExportData(type); 2504var attr = AttributeDataReader.GetAspireExportData(type); 2529private static bool ShouldExportMember(bool isPublic, bool exposeAll, AspireExportData? exportAttr) 2544private static AspireExportData? GetAspireExportAttribute(PropertyInfo property)
Ats\AttributeDataReader.cs (14)
22internal static AspireExportData? GetAspireExportData(Type type) 23=> FindSingleAttribute<AspireExportData>(type.GetCustomAttributesData(), s_aspireExportAttributeFullName, ParseAspireExportData); 25internal static AspireExportData? GetAspireExportData(MethodInfo method) 26=> FindSingleAttribute<AspireExportData>(method.GetCustomAttributesData(), s_aspireExportAttributeFullName, ParseAspireExportData); 28internal static AspireExportData? GetAspireExportData(PropertyInfo property) 29=> FindSingleAttribute<AspireExportData>(property.GetCustomAttributesData(), s_aspireExportAttributeFullName, ParseAspireExportData); 31internal static IEnumerable<AspireExportData> GetAspireExportDataAll(Assembly assembly) 101private static AspireExportData ParseAspireExportData(CustomAttributeData data) 137case nameof(AspireExportData.Type): 143case nameof(AspireExportData.Description): 146case nameof(AspireExportData.MethodName): 149case nameof(AspireExportData.ExposeProperties): 155case nameof(AspireExportData.ExposeMethods): 161case nameof(AspireExportData.RunSyncOnBackgroundThread):
Aspire.Hosting.Tests (6)
Ats\AttributeDataReaderTests.cs (6)
29var result = AttributeDataReader.GetAspireExportData(method); 40var result = AttributeDataReader.GetAspireExportData(method); 48var result = AttributeDataReader.GetAspireExportData(typeof(ThirdPartyResource)); 114var result = AttributeDataReader.GetAspireExportData(method); 124var result = AttributeDataReader.GetAspireExportData(typeof(OfficialMethodsResource)); 135var result = AttributeDataReader.GetAspireExportData(method);