HostingTypeHelpers
Class static net8.0
Provides helper methods for identifying well-known Aspire hosting types by full name.
namespace Aspire.TypeSystem;
public static class HostingTypeHelpers{ // ...}Methods4
Section titled MethodsIsDistributedApplicationBuilderType(Type?)staticbool Determines whether the specified
type is the IDistributedApplicationBuilder interface. IsDistributedApplicationType(Type?)staticbool Determines whether the specified
type is the DistributedApplication class. IsResourceBuilderType(Type?)staticbool Determines whether the specified
type implements the generic IResourceBuilder interface. IsResourceType(Type?)staticbool Determines whether the specified
type implements the IResource interface.