Skip to content

Commit

Permalink
Consistent resource type summaries (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK authored Jan 28, 2024
1 parent ada5af1 commit eca647c
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Aspire.Hosting.Azure/AzureAppConfigurationResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents an Azure App Configuration resource.
/// A resource that represents Azure App Configuration.
/// </summary>
/// <param name="name">The name of the resource.</param>
public class AzureAppConfigurationResource(string name) : Resource(name), IAzureResource, IResourceWithConnectionString
Expand Down
4 changes: 2 additions & 2 deletions src/Aspire.Hosting.Azure/AzureBlobStorageResource.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents a resource that is stored in Azure Blob Storage.
/// A resource that represents an Azure Blob Storage account.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="storage">The <see cref="AzureStorageResource"/> that the resource is stored in.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting.Azure/AzureCosmosDBResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Aspire.Hosting.Azure.Data.Cosmos;

/// <summary>
/// Represents a connection to an Azure Cosmos DB account.
/// A resource that represents an Azure Cosmos DB.
/// </summary>
/// <param name="name">The resource name.</param>
/// <param name="connectionString">The connection string to use to connect.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting.Azure/AzureKeyVaultResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents an Azure Key Vault resource that can be deployed to an Azure resource group.
/// A resource that represents an Azure Key Vault.
/// </summary>
/// <param name="name">The name of the resource.</param>
public class AzureKeyVaultResource(string name) : Resource(name), IAzureResource, IResourceWithConnectionString
Expand Down
5 changes: 3 additions & 2 deletions src/Aspire.Hosting/ApplicationModel/ContainerResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents a container resource that implements <see cref="IResourceWithEnvironment"/>
/// and <see cref="IResourceWithEndpoints"/>.
/// A resource that represents a specified container.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="entrypoint">An optional container entrypoint.</param>
public class ContainerResource(string name, string? entrypoint = null) : Resource(name), IResourceWithEnvironment, IResourceWithEndpoints
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/ApplicationModel/ExecutableResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents a resource that can be executed as a standalone process.
/// A resource that represents a specified executable process.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="command">The command to execute.</param>
Expand Down
4 changes: 2 additions & 2 deletions src/Aspire.Hosting/ApplicationModel/ProjectResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents a project resource that implements <see cref="IResourceWithEnvironment"/> and
/// <see cref="IResourceWithEndpoints"/>.
/// A resource that represents a specified .NET project.
/// </summary>
/// <param name="name">The name of the resource.</param>
public class ProjectResource(string name) : Resource(name), IResourceWithEnvironment, IResourceWithServiceDiscovery
{
}
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Kafka/KafkaContainerResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Aspire.Hosting;
/// <summary>
/// A resource that represents a Kafka broker container.
/// </summary>
/// <param name="name"></param>
/// <param name="name">The name of the resource.</param>
public class KafkaContainerResource(string name) : ContainerResource(name), IResourceWithConnectionString, IResourceWithEnvironment
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Node/NodeAppResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Aspire.Hosting;
/// <summary>
/// A resource that represents a node application.
/// </summary>
/// <param name="name">The name of the resource</param>
/// <param name="name">The name of the resource.</param>
/// <param name="command">The command to execute.</param>
/// <param name="workingDirectory">The working directory to use for the command. If null, the working directory of the current process is used.</param>
/// <param name="args">The arguments to pass to the command.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/OpenAI/OpenAIResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents an OpenAI resource independent of hosting model.
/// A resource that represents an OpenAI resource independent of the hosting model.
/// </summary>
/// <param name="name">The name of the resource.</param>
public class OpenAIResource(string name) : Resource(name), IResourceWithConnectionString
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Oracle/OracleDatabaseResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// A resource that represents a Oracle Database database. This is a child resource of a <see cref="OracleDatabaseContainerResource"/>.
/// A resource that represents an Oracle Database database. This is a child resource of a <see cref="OracleDatabaseContainerResource"/>.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="oracleParentResource">The Oracle Database parent resource associated with this database.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Oracle/OracleDatabaseServerResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// A resource that represents a Oracle Database container.
/// A resource that represents an Oracle Database container.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="password">The Oracle Database server password.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Redis/RedisResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents a Redis resource independent of hosting model.
/// A resource that represents a Redis resource independent of the hosting model.
/// </summary>
/// <param name="name">The name of the resource.</param>
public class RedisResource(string name) : Resource(name), IResourceWithConnectionString, IRedisResource
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/SqlServer/SqlServerDatabaseResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Aspire.Hosting.ApplicationModel;

/// <summary>
/// Represents a SQL Server database resource that is a child of a SQL Server container resource.
/// A resource that represents a SQL Server database that is a child of a SQL Server container resource.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="sqlServerContainer">The parent SQL Server container resource.</param>
Expand Down

0 comments on commit eca647c

Please sign in to comment.