79 instantiations of MarkdownString
Aspire.Hosting (12)
Ats\PipelineExports.cs (6)
66summary.Add(key, new MarkdownString(markdownString)); 90return reportingStep.CreateTaskAsync(new MarkdownString(markdownString), cancellationToken); 116reportingStep.Log(ParseLogLevel(level), new MarkdownString(markdownString)); 140return reportingStep.CompleteAsync(new MarkdownString(markdownString), ParseCompletionState(completionState), cancellationToken); 164return reportingTask.UpdateAsync(new MarkdownString(markdownString), cancellationToken); 187return reportingTask.CompleteAsync(new MarkdownString(markdownString), ParseCompletionState(completionState), cancellationToken);
Pipelines\PipelineStepHelpers.cs (6)
68new MarkdownString($"Tagging **{resource.Name}** for local use"), 90new MarkdownString($"Successfully tagged **{resource.Name}** as `{targetTag}`"), 97new MarkdownString($"Failed to tag **{resource.Name}**: {ex.Message}"), 114new MarkdownString($"Pushing **{resource.Name}** to **{registryName}**"), 130new MarkdownString($"Successfully pushed **{resource.Name}** to `{targetTag}`"), 137new MarkdownString($"Failed to push **{resource.Name}**: {ex.Message}"),
Aspire.Hosting.Azure (14)
AzureBicepResource.cs (4)
342.CreateTaskAsync(new MarkdownString($"Deploying **{resource.Name}**"), context.CancellationToken) 354new MarkdownString($"Using existing deployment for **{resource.Name}**"), 365new MarkdownString($"Successfully provisioned **{resource.Name}**"), 380new MarkdownString($"Failed to provision **{resource.Name}**: {errorMessage}"),
AzureEnvironmentResource.cs (9)
212new MarkdownString("Azure CLI authentication failed. Please run `az login` to authenticate before deploying. Learn more at [Azure CLI documentation](https://learn.microsoft.com/cli/azure/authenticate-azure-cli)."), 268new MarkdownString($"Resource group **{resourceGroupName}** not found (already deleted)"), 279new MarkdownString($"Discovering resources in **{resourceGroupName}**"), 293new MarkdownString($"Resource group **{resourceGroupName}** is empty"), 308new MarkdownString($"Found **{resources.Count}** resource(s) in **{resourceGroupName}**"), 355new MarkdownString($"Deleting resource group **{resourceGroupName}** ({resources.Count} resource(s))"), 364context.Summary.Add("🗑️ Resource Group", new MarkdownString($"[{resourceGroupName}]({portalUrl})")); 366context.Summary.Add("⏳ Status", new MarkdownString($"Deletion in progress. Monitor [here]({portalUrl})")); 369new MarkdownString($"Resource group **{resourceGroupName}** deletion in progress. Monitor in the [Azure portal]({portalUrl})."),
src\Shared\AzurePortalUrls.cs (1)
115return new($"[{linkText}]({url})");
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppEnvironmentResource.cs (2)
160context.Summary.Add("📊 Dashboard", new MarkdownString($"[{dashboardUrl}]({dashboardUrl})")); 163new MarkdownString($"Dashboard available at [{dashboardUrl}]({dashboardUrl})"),
AzureContainerAppResource.cs (4)
56ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{targetResource.Name}** to {summaryValue}")); 57ctx.Summary.Add(targetResource.Name, new MarkdownString(summaryValue)); 63ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{targetResource.Name}** to Azure Container Apps environment **{containerAppEnv.Name}**. {summaryValue}")); 64ctx.Summary.Add(targetResource.Name, new MarkdownString(summaryValue));
src\Shared\AzurePortalUrls.cs (1)
115return new($"[{linkText}]({url})");
Aspire.Hosting.Azure.AppService (5)
AzureAppServiceEnvironmentResource.cs (2)
246context.Summary.Add("📊 Dashboard", new MarkdownString($"[{dashboardUri}]({dashboardUri})")); 250new MarkdownString($"Dashboard available at [{dashboardUri}]({dashboardUri})"),
AzureAppServiceWebSiteResource.cs (2)
62ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{targetResource.Name}** to {summaryValue}")); 63ctx.Summary.Add(targetResource.Name, new MarkdownString(summaryValue));
src\Shared\AzurePortalUrls.cs (1)
115return new($"[{linkText}]({url})");
Aspire.Hosting.Azure.ContainerRegistry (3)
AzureContainerRegistryHelpers.cs (3)
33new MarkdownString($"Logging in to **{registryName}**"), 52new MarkdownString($"Successfully logged in to **{registryEndpoint}**"), 59new MarkdownString($"Login to ACR **{registryEndpoint}** failed: {ex.Message}"),
Aspire.Hosting.Azure.Kubernetes (3)
AzureKubernetesEnvironmentResource.AksPipeline.cs (3)
334new MarkdownString($"**{clusterName}** in resource group **{resourceGroup}**")); 342new MarkdownString( 642new MarkdownString($"**{lb.AlbName}** in `{AzureKubernetesLoadBalancerResource.AlbNamespace}` (subnet `{subnetId}`)"));
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (3)
376await exposeTask.CompleteAsync(new MarkdownString($"Public URL: [{endpointUrl}]({endpointUrl})"), CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 499context.Summary.Add(resource.TargetResource.Name, new MarkdownString(CreateSandboxUrlSummary(publicUrl, retainedUrl))); 503context.Summary.Add(resource.TargetResource.Name, new MarkdownString($"Sandbox `{sandboxId}`"));
AzureSandboxGroupResource.cs (2)
173context.Summary.Add($"{Name} sandbox dashboard", new MarkdownString($"[{dashboardUrl}]({dashboardUrl})")); 176new MarkdownString($"Sandbox dashboard available at [{dashboardUrl}]({dashboardUrl})"),
Aspire.Hosting.Docker (9)
DockerComposeEnvironmentResource.cs (6)
173new MarkdownString($"Running compose down for **{Name}** using **{runtime.Name}**"), 179new MarkdownString($"Compose shutdown complete for **{Name}** ({runtime.Name})"), 440new MarkdownString($"Running compose up for **{Name}** using **{runtime.Name}**"), 459new MarkdownString($"Service **{Name}** is now running with Docker Compose locally (runtime: {runtime.Name})"), 486new MarkdownString($"Running compose down for **{Name}** using **{runtime.Name}**"), 497new MarkdownString($"Compose shutdown complete for **{Name}** ({runtime.Name})"),
DockerComposeServiceResource.cs (3)
332new MarkdownString($"Successfully deployed **{TargetResource.Name}** to Docker Compose environment **{environment.Name}**. No public endpoints were configured.")); 349context.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{TargetResource.Name}** to {endpointList}.")); 356new MarkdownString($"Successfully deployed **{TargetResource.Name}** to Docker Compose environment **{environment.Name}**."));
Aspire.Hosting.Foundry (3)
HostedAgent\AzureHostedAgentResource.cs (1)
56ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{Name}** as Hosted Agent (version {version})"));
PromptAgent\AzurePromptAgentResource.cs (1)
90new MarkdownString($"Successfully deployed **{Name}** as Prompt Agent (version {version.Version})"));
Toolbox\FoundryToolboxResource.cs (1)
84new MarkdownString(
Aspire.Hosting.Kubernetes (11)
Deployment\HelmDeploymentEngine.cs (11)
255new MarkdownString($"Preparing Helm chart values for **{environment.Name}**"), 269new MarkdownString($"Helm chart values prepared for **{environment.Name}**"), 424new MarkdownString($"Deploying **{environment.Name}** to Kubernetes namespace **{@namespace}** as Helm release **{releaseName}**"), 494new MarkdownString($"Helm release **{releaseName}** deployed to namespace **{@namespace}**"), 558new MarkdownString($"`kubectl port-forward -n {@namespace} svc/{dashboardServiceName} 18888:18888` then open [http://localhost:18888](http://localhost:18888)")); 563new MarkdownString($"`kubectl logs -n {@namespace} -l app.kubernetes.io/component={dashboardDeploymentName} --tail=50` to retrieve the login token")); 569new MarkdownString($"`helm status {releaseName} -n {@namespace}`")); 573new MarkdownString($"`kubectl get all -n {@namespace} -l app.kubernetes.io/instance={releaseName}`")); 578new MarkdownString($"`helm uninstall {releaseName} -n {@namespace}`")); 601new MarkdownString($"Uninstalling Helm release **{releaseName}** from namespace **{@namespace}**"), 639new MarkdownString($"Helm release **{releaseName}** uninstalled from namespace **{@namespace}**"),
Aspire.Hosting.Tests (7)
Pipelines\PipelineSummaryTests.cs (2)
164summary.Add("📦 Resource Group", new MarkdownString("[rg-test](https://portal.azure.com)")); 195summary.Add("📦 Resource Group", new MarkdownString("[rg-test](https://portal.azure.com)"));
Publishing\PipelineActivityReporterTests.cs (5)
1075step.Log(logLevel, new MarkdownString(logMessage)); 1149var task = await step.CreateTaskAsync(new MarkdownString("**Bold** task"), CancellationToken.None); 1170await task.UpdateAsync(new MarkdownString("**Updated** status"), CancellationToken.None); 1190await task.CompleteAsync(new MarkdownString("Deployed to **Azure**"), CompletionState.Completed, CancellationToken.None); 1209await step.CompleteAsync(new MarkdownString("Step **completed** successfully"), CompletionState.Completed, CancellationToken.None);
90 references to MarkdownString
Aspire.Hosting (27)
Pipelines\IReportingStep.cs (3)
27Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default); 50void Log(LogLevel logLevel, MarkdownString message); 66Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default);
Pipelines\IReportingTask.cs (2)
23Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default); 39Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default);
Pipelines\MarkdownString.cs (3)
12/// <see cref="MarkdownString"/> will render Markdown formatting (such as bold, links, and lists) 13/// only when a <see cref="MarkdownString"/> is provided; plain <see cref="string"/> values are 28/// Initializes a new instance of the <see cref="MarkdownString"/> class with the specified Markdown content.
Pipelines\NullPipelineActivityReporter.cs (5)
40public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 57public void Log(LogLevel logLevel, MarkdownString message) 67public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 85public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 95public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Pipelines\PipelineSummary.cs (2)
21/// Values can be plain text or Markdown-formatted by using <see cref="MarkdownString"/>. 98public void Add(string key, MarkdownString value)
Pipelines\ReportingStep.cs (3)
113public async Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 150public void Log(LogLevel logLevel, MarkdownString message) 174public async Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Pipelines\ReportingTask.cs (2)
56public async Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 69public async Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Publishing\PublishingExtensions.cs (7)
38MarkdownString message, 71MarkdownString message, 104MarkdownString errorMessage, 136MarkdownString statusText, 168MarkdownString message, 200MarkdownString message, 232MarkdownString errorMessage,
Aspire.Hosting.Azure (5)
src\Shared\AzurePortalUrls.cs (5)
29internal static MarkdownString GetResourceGroupLink(string subscriptionId, string resourceGroupName, Guid? tenantId = null) 45internal static MarkdownString GetResourceGroupDeploymentsLink(string subscriptionId, string resourceGroupName, Guid? tenantId = null) 77internal static MarkdownString GetResourceLink(string resourceId, string linkText = AzurePortalLinkText, Guid? tenantId = null) 85internal static MarkdownString GetResourceLink(ResourceIdentifier resourceId, string linkText = AzurePortalLinkText, Guid? tenantId = null) 113private static MarkdownString GetMarkdownLink(string linkText, string url)
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppResource.cs (1)
49var portalLink = await ContainerAppUrls.GetPortalLinkAsync(containerAppEnv, targetResource.Name.ToLowerInvariant(), ctx.CancellationToken).ConfigureAwait(false);
ContainerAppUrls.cs (1)
13internal static async Task<MarkdownString> GetPortalLinkAsync(AzureContainerAppEnvironmentResource containerAppEnv, string containerAppName, CancellationToken cancellationToken)
src\Shared\AzurePortalUrls.cs (5)
29internal static MarkdownString GetResourceGroupLink(string subscriptionId, string resourceGroupName, Guid? tenantId = null) 45internal static MarkdownString GetResourceGroupDeploymentsLink(string subscriptionId, string resourceGroupName, Guid? tenantId = null) 77internal static MarkdownString GetResourceLink(string resourceId, string linkText = AzurePortalLinkText, Guid? tenantId = null) 85internal static MarkdownString GetResourceLink(ResourceIdentifier resourceId, string linkText = AzurePortalLinkText, Guid? tenantId = null) 113private static MarkdownString GetMarkdownLink(string linkText, string url)
Aspire.Hosting.Azure.AppService (7)
AppSvcUrls.cs (1)
14internal static async Task<MarkdownString> GetPortalLinkAsync(AzureAppServiceEnvironmentResource computerEnv, string siteName, string? deploymentSlot, CancellationToken cancellationToken)
AzureAppServiceWebSiteResource.cs (1)
59var portalLink = await AppSvcUrls.GetPortalLinkAsync(computerEnv, websiteName, deploymentSlot, ctx.CancellationToken).ConfigureAwait(false);
src\Shared\AzurePortalUrls.cs (5)
29internal static MarkdownString GetResourceGroupLink(string subscriptionId, string resourceGroupName, Guid? tenantId = null) 45internal static MarkdownString GetResourceGroupDeploymentsLink(string subscriptionId, string resourceGroupName, Guid? tenantId = null) 77internal static MarkdownString GetResourceLink(string resourceId, string linkText = AzurePortalLinkText, Guid? tenantId = null) 85internal static MarkdownString GetResourceLink(ResourceIdentifier resourceId, string linkText = AzurePortalLinkText, Guid? tenantId = null) 113private static MarkdownString GetMarkdownLink(string linkText, string url)
Aspire.Hosting.Azure.Kubernetes.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Foundry.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Java.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Kubernetes.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Rust.Tests (5)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (9)
Pipelines\CorePipelineApiTests.cs (1)
36[InlineData(typeof(MarkdownString))]
Pipelines\PipelineLoggerProviderTests.cs (3)
134public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 144public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 166public void Log(LogLevel logLevel, MarkdownString message)
tests\Shared\TestPipelineActivityReporter.cs (5)
232public void Log(LogLevel logLevel, MarkdownString message) 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 248public Task CompleteAsync(MarkdownString completionText, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default) 292public Task UpdateAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 298public Task CompleteAsync(MarkdownString completionMessage, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default)