| File: SqlServerConfigurationAnnotation.cs | Web Access |
| Project: src\src\Aspire.Hosting.Azure.ServiceBus\Aspire.Hosting.Azure.ServiceBus.csproj (Aspire.Hosting.Azure.ServiceBus) |
// 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.Azure.ServiceBus; /// <summary> /// Represents an annotation holding a callback that customizes the SQL Server resource /// backing the Azure Service Bus emulator. /// </summary> internal sealed class SqlServerConfigurationAnnotation : IResourceAnnotation { public SqlServerConfigurationAnnotation(Action<IResourceBuilder<SqlServerServerResource>> configure) { Configure = configure ?? throw new ArgumentNullException(nameof(configure)); } public Action<IResourceBuilder<SqlServerServerResource>> Configure { get; } }