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) { // ... }}Parameters
type Type? Determines whether the specified
type is the DistributedApplication class. public static class HostingTypeHelpers{ public static bool IsDistributedApplicationType( Type? type) { // ... }}Parameters
type Type? Determines whether the specified
type implements the generic IResourceBuilder interface. public static class HostingTypeHelpers{ public static bool IsResourceBuilderType( Type? type) { // ... }}Parameters
type Type? Determines whether the specified
type implements the IResource interface. public static class HostingTypeHelpers{ public static bool IsResourceType( Type? type) { // ... }}Parameters
type Type?