Skip to content
Docs Try Aspire

IResourceWithCustomWithReference<TSelf>

Interface net8.0
📦 Aspire.Hosting v13.2.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>
{
// ...
}
TSelf
The concrete resource type that provides the custom dispatch behavior.
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.