<PackageReference Include="Polly.Core" Version="8.0.0" />

DynamicDependencyAttribute

States a dependency that one member has on another.
public string AssemblyName { get; }

Gets the assembly name of the specified type.

public string Condition { get; set; }

Gets or sets the condition in which the dependency is applicable, e.g. "DEBUG".

public string MemberSignature { get; }

Gets the signature of the member depended on.

Gets the DynamicallyAccessedMemberTypes which specifies the type of members depended on.

public Type Type { get; }

Gets the Type containing the specified member.

public string TypeName { get; }

Gets the full name of the type containing the specified member.

public DynamicDependencyAttribute(string memberSignature)

Initializes a new instance of the DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer.

public DynamicDependencyAttribute(string memberSignature, Type type)

Initializes a new instance of the DynamicDependencyAttribute class with the specified signature of a member on a Type.

public DynamicDependencyAttribute(string memberSignature, string typeName, string assemblyName)

Initializes a new instance of the DynamicDependencyAttribute class with the specified signature of a member on a type in an assembly.

Initializes a new instance of the DynamicDependencyAttribute class with the specified types of members on a Type.

public DynamicDependencyAttribute(DynamicallyAccessedMemberTypes memberTypes, string typeName, string assemblyName)

Initializes a new instance of the DynamicDependencyAttribute class with the specified types of members on a type in an assembly.