Skip to content
Docs Try Aspire

HostingTypeHelpers Methods

Class Methods 4 members
Provides helper methods for identifying well-known Aspire hosting types by full name.
IsDistributedApplicationBuilderType(Type?) Section titled IsDistributedApplicationBuilderType(Type?) static bool
Determines whether the specified type is the IDistributedApplicationBuilder interface.
public static class HostingTypeHelpers
{
public static bool IsDistributedApplicationBuilderType(
Type? type)
{
// ...
}
}
type Type?
IsDistributedApplicationType(Type?) Section titled IsDistributedApplicationType(Type?) static bool
Determines whether the specified type is the DistributedApplication class.
public static class HostingTypeHelpers
{
public static bool IsDistributedApplicationType(
Type? type)
{
// ...
}
}
type Type?
IsResourceBuilderType(Type?) Section titled IsResourceBuilderType(Type?) static bool
Determines whether the specified type implements the generic IResourceBuilder interface.
public static class HostingTypeHelpers
{
public static bool IsResourceBuilderType(
Type? type)
{
// ...
}
}
type Type?
IsResourceType(Type?) Section titled IsResourceType(Type?) static bool
Determines whether the specified type implements the IResource interface.
public static class HostingTypeHelpers
{
public static bool IsResourceType(
Type? type)
{
// ...
}
}
type Type?