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