File: PhpMyAdminResource.cs
Web Access
Project: src\src\Aspire.Hosting.MySql\Aspire.Hosting.MySql.csproj (Aspire.Hosting.MySql)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Aspire.Hosting.ApplicationModel;
 
namespace Aspire.Hosting.MySql;
 
/// <summary>
/// Resource representing PhpMyAdmin container.
/// </summary>
/// <param name="name">Name of resource.</param>
public sealed class PhpMyAdminContainerResource(string name) : ContainerResource(name)
{
    internal const string PrimaryEndpointName = "http";
 
    private EndpointReference? _primaryEndpoint;
 
    /// <summary>
    /// Gets the primary endpoint for phpMyAdmin.
    /// </summary>
    public EndpointReference PrimaryEndpoint => _primaryEndpoint ??= new(this, PrimaryEndpointName);
}