ContainerResourceExtensions Methods
Class Methods 2 members
Provides extension methods for working with container resources in a distributed application model.
GetContainerResources(DistributedApplicationModel) Section titled GetContainerResources(DistributedApplicationModel) extension IEnumerable<IResource> Returns a collection of container resources in the specified distributed application model.
public static class ContainerResourceExtensions{ public static IEnumerable<IResource> GetContainerResources( this DistributedApplicationModel model) { // ... }}Parameters
model DistributedApplicationModel The distributed application model to search for container resources. Returns
IEnumerable<IResource> A collection of container resources in the specified distributed application model. Determines whether the specified resource is a container resource.
public static class ContainerResourceExtensions{ public static bool IsContainer( this IResource resource) { // ... }}Parameters
resource IResource The resource to check. Returns
bool true if the specified resource is a container resource; otherwise, false.