IResourceWithCustomWithReference<TSelf>
Interfacenet10.0
Defines custom
WithReference dispatch behavior for a resource type. namespace Aspire.Hosting.ApplicationModel;
public interface IResourceWithCustomWithReference<TSelf> : Aspire.Hosting.ApplicationModel.IResource where TSelf : IResource, IResourceWithCustomWithReference<TSelf>{ // ...}Type Parameters
Section titled Type ParametersTSelfThe concrete resource type that provides the custom dispatch behavior.
Remarks
Section titled Remarks This contract is used by the internal ATS-visible
withReference dispatcher to route references to resource-specific logic at runtime. Implementations may customize dispatch based on either the source or destination resource type. Methods1
Section titled MethodsTryWithReference(IResourceBuilder<TDestination>, IResourceBuilder<IResource>, string?, bool, string?)staticabstractIResourceBuilder<TDestination> Applies a reference from
source to builder using resource-specific behavior.