MOVED to https://github.com/dotnet/aspire/blob/main/docs/specs/appmodel.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:package Spectre.Console@0.50.0 | |
#:package NuGet.Versioning@6.14.0 | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using Spectre.Console; | |
using NuGet.Versioning; | |
using System.Diagnostics; | |
// Business logic class for .NET installation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:package Spectre.Console@0.50.0 | |
using Spectre.Console; | |
using Spectre.Console.Rendering; | |
using System.Threading.Channels; | |
// Entry point | |
var app = new ConsoleApp(); | |
app.Render(new App()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------------- | |
// Azure RG Janitor - Spectre Edition | |
// Run with: dotnet run cleanup-rg.cs | |
// Targets: .NET 10 Preview 4+ | |
// ----------------------------------------------------------------------------- | |
#:package Azure.Identity@1.* | |
#:package Azure.ResourceManager@1.* | |
#:package Spectre.Console@0.50.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Reflection; | |
using System.Threading.Channels; | |
using Aspire.Hosting.Eventing; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
public static class ProjectResourceBuilderExtensions | |
{ | |
public static IResourceBuilder<ProjectResource> RestartOnChange(this IResourceBuilder<ProjectResource> builder, params string[] filePatterns) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using CliWrap; | |
namespace GitCLIWrapper; | |
public static class Git | |
{ | |
public static Command Clone( | |
string repository, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
var builder = DistributedApplication.CreateBuilder(args); | |
builder.AddContainer("redis", "redis").WithExplicitStart(); | |
builder.Build().Run(); | |
public static class ExplicitStartupExtensions | |
{ |
Me using copilot
Copilot_Aspire.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
var data = new[] | |
{ | |
"Hello"u8.ToArray(), | |
"Twitter"u8.ToArray(), | |
"Optimize"u8.ToArray() | |
} | |
.Select(m => new Message(m)).ToArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Net.Sockets; | |
using System.Security.Authentication; | |
using Yarp.Telemetry.Consumption; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Services.AddTelemetryConsumer<TelemetryConsumer>(); | |
var app = builder.Build(); |
NewerOlder