Skip to content
Docs Try Aspire
Docs Try

AttributeDataReader Methods

Class Methods 15 members
Provides full-name-based discovery of ATS attributes from Reflection.CustomAttributeData, so that third-party authors can define their own attribute types with the same full name without requiring a package reference to Aspire.Hosting.
Gets AspireExportData from the specified type, if present.
public static class AttributeDataReader
{
public static AspireExportData? GetAspireExportData(
Type type)
{
// ...
}
}
type Type
GetAspireExportData(MethodInfo) Section titled GetAspireExportData(MethodInfo) staticnullable AspireExportData?
Gets AspireExportData from the specified method, if present.
public static class AttributeDataReader
{
public static AspireExportData? GetAspireExportData(
MethodInfo method)
{
// ...
}
}
method MethodInfo
GetAspireExportData(PropertyInfo) Section titled GetAspireExportData(PropertyInfo) staticnullable AspireExportData?
Gets AspireExportData from the specified property, if present.
public static class AttributeDataReader
{
public static AspireExportData? GetAspireExportData(
PropertyInfo property)
{
// ...
}
}
property PropertyInfo
Gets all AspireExportData entries from the specified assembly.
public static class AttributeDataReader
{
public static IEnumerable<AspireExportData> GetAspireExportDataAll(
Assembly assembly)
{
// ...
}
}
assembly Assembly
GetAspireUnionData(ParameterInfo) Section titled GetAspireUnionData(ParameterInfo) staticnullable AspireUnionData?
Gets AspireUnionData from the specified parameter, if present.
public static class AttributeDataReader
{
public static AspireUnionData? GetAspireUnionData(
ParameterInfo parameter)
{
// ...
}
}
parameter ParameterInfo
GetAspireUnionData(PropertyInfo) Section titled GetAspireUnionData(PropertyInfo) staticnullable AspireUnionData?
Gets AspireUnionData from the specified property, if present.
public static class AttributeDataReader
{
public static AspireUnionData? GetAspireUnionData(
PropertyInfo property)
{
// ...
}
}
property PropertyInfo
GetAspireValueData(FieldInfo) Section titled GetAspireValueData(FieldInfo) staticnullable AspireValueData?
Gets AspireValueData from the specified field, if present.
public static class AttributeDataReader
{
public static AspireValueData? GetAspireValueData(
FieldInfo field)
{
// ...
}
}
field FieldInfo
GetAspireValueData(PropertyInfo) Section titled GetAspireValueData(PropertyInfo) staticnullable AspireValueData?
Gets AspireValueData from the specified property, if present.
public static class AttributeDataReader
{
public static AspireValueData? GetAspireValueData(
PropertyInfo property)
{
// ...
}
}
property PropertyInfo
GetObsoleteData(MethodInfo) Section titled GetObsoleteData(MethodInfo) staticnullable ObsoleteData?
Gets ObsoleteData from the specified method, if present.
public static class AttributeDataReader
{
public static ObsoleteData? GetObsoleteData(
MethodInfo method)
{
// ...
}
}
method MethodInfo
GetObsoleteData(PropertyInfo) Section titled GetObsoleteData(PropertyInfo) staticnullable ObsoleteData?
Gets ObsoleteData from the specified property, if present.
public static class AttributeDataReader
{
public static ObsoleteData? GetObsoleteData(
PropertyInfo property)
{
// ...
}
}
property PropertyInfo
GetObsoleteData(Type) Section titled GetObsoleteData(Type) staticnullable ObsoleteData?
Gets ObsoleteData from the specified type, if present.
public static class AttributeDataReader
{
public static ObsoleteData? GetObsoleteData(
Type type)
{
// ...
}
}
type Type
HasAspireDtoData(Type) Section titled HasAspireDtoData(Type) static bool
Determines whether the specified type has the AspireDto attribute.
public static class AttributeDataReader
{
public static bool HasAspireDtoData(
Type type)
{
// ...
}
}
type Type
HasAspireExportIgnoreData(Type) Section titled HasAspireExportIgnoreData(Type) static bool
Determines whether the specified type has the AspireExportIgnore attribute.
public static class AttributeDataReader
{
public static bool HasAspireExportIgnoreData(
Type type)
{
// ...
}
}
type Type
HasAspireExportIgnoreData(PropertyInfo) Section titled HasAspireExportIgnoreData(PropertyInfo) static bool
Determines whether the specified property has the AspireExportIgnore attribute.
public static class AttributeDataReader
{
public static bool HasAspireExportIgnoreData(
PropertyInfo property)
{
// ...
}
}
property PropertyInfo
HasAspireExportIgnoreData(MethodInfo) Section titled HasAspireExportIgnoreData(MethodInfo) static bool
Determines whether the specified method has the AspireExportIgnore attribute.
public static class AttributeDataReader
{
public static bool HasAspireExportIgnoreData(
MethodInfo method)
{
// ...
}
}
method MethodInfo