Skip to content

Commit

Permalink
rename project and package prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
oising committed Dec 26, 2024
1 parent 548b290 commit 663030c
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 457 deletions.
4 changes: 2 additions & 2 deletions Packages.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35521.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Aspire.Hosting.ProjectCommander", "Src\CommunityToolkit.Aspire.Hosting.ProjectCommander\CommunityToolkit.Aspire.Hosting.ProjectCommander.csproj", "{BA1F35CD-5AE3-49C8-A0CA-253073F93D10}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nivot.Aspire.Hosting.ProjectCommander", "Src\Nivot.Aspire.Hosting.ProjectCommander\Nivot.Aspire.Hosting.ProjectCommander.csproj", "{BA1F35CD-5AE3-49C8-A0CA-253073F93D10}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Aspire.ProjectCommander", "Src\CommunityToolkit.Aspire.ProjectCommander\CommunityToolkit.Aspire.ProjectCommander.csproj", "{0F44E08D-3C6C-4AD2-8945-617612AD4DAF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nivot.Aspire.ProjectCommander", "Src\Nivot.Aspire.ProjectCommander\Nivot.Aspire.ProjectCommander.csproj", "{0F44E08D-3C6C-4AD2-8945-617612AD4DAF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{38700E57-CF17-4094-96D0-FE21AFA0EC5D}"
ProjectSection(SolutionItems) = preProject
Expand Down
4 changes: 2 additions & 2 deletions ProjectCommander.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35521.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Aspire.Hosting.ProjectCommander", "Src\CommunityToolkit.Aspire.Hosting.ProjectCommander\CommunityToolkit.Aspire.Hosting.ProjectCommander.csproj", "{BA1F35CD-5AE3-49C8-A0CA-253073F93D10}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nivot.Aspire.Hosting.ProjectCommander", "Src\Nivot.Aspire.Hosting.ProjectCommander\Nivot.Aspire.Hosting.ProjectCommander.csproj", "{BA1F35CD-5AE3-49C8-A0CA-253073F93D10}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Aspire.ProjectCommander", "Src\CommunityToolkit.Aspire.ProjectCommander\CommunityToolkit.Aspire.ProjectCommander.csproj", "{0F44E08D-3C6C-4AD2-8945-617612AD4DAF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nivot.Aspire.ProjectCommander", "Src\Nivot.Aspire.ProjectCommander\Nivot.Aspire.ProjectCommander.csproj", "{0F44E08D-3C6C-4AD2-8945-617612AD4DAF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataGenerator", "Sample\DataGenerator\DataGenerator.csproj", "{C8B82394-D38B-490E-9BF9-3E66579C1EC3}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Aspire Project commander is a set of packages that lets you send simple string c
[Aspire](https://learn.microsoft.com/en-us/dotnet/aspire/) allows adding [custom commands](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/custom-resource-commands) to any project in the dashboard but these commands are scoped to and handled in the AppHost itself. These are useful to send commands to APIs on running containers, such as performing a `FLUSHALL` on a Redis container to reset state. Ultimately, the `WithCommand` resource extension method requires you to interface with each target resource (e.g. `Executable`, `Container`, `Project`) independently, using code you write yourself.

## Custom Project Commands (New!)
This project and its associated NuGet packages allow you to send simple commands directly to `Project` type resources, that is to say, regular dotnet projects you're writing yourself. Register some simple string commands in the [Aspire Dashboard](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/dashboard/overview?tabs=bash) -- for example "start-messages", "stop-messages" -- using the [hosting](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/app-host-overview?tabs=docker) package `CommunityToolkit.Aspire.Hosting.ProjectCommander`, and then use the [integration](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/integrations-overview) package `CommunityToolkit.Aspire.ProjectCommander` to receive commands in your message generating project that you're using to dump data into an Azure Event Hubs emulator.
This project and its associated NuGet packages allow you to send simple commands directly to `Project` type resources, that is to say, regular dotnet projects you're writing yourself. Register some simple string commands in the [Aspire Dashboard](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/dashboard/overview?tabs=bash) -- for example "start-messages", "stop-messages" -- using the [hosting](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/app-host-overview?tabs=docker) package `Nivot.Aspire.Hosting.ProjectCommander`, and then use the [integration](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/integrations-overview) package `Nivot.Aspire.ProjectCommander` to receive commands in your message generating project that you're using to dump data into an Azure Event Hubs emulator.

## Example

Expand Down
2 changes: 1 addition & 1 deletion Sample/DataGenerator/DataGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Src\CommunityToolkit.Aspire.ProjectCommander\CommunityToolkit.Aspire.ProjectCommander.csproj" />
<ProjectReference Include="..\..\Src\Nivot.Aspire.ProjectCommander\Nivot.Aspire.ProjectCommander.csproj" />
<ProjectReference Include="..\ProjectCommander.ServiceDefaults\ProjectCommander.ServiceDefaults.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Src\CommunityToolkit.Aspire.Hosting.ProjectCommander\CommunityToolkit.Aspire.Hosting.ProjectCommander.csproj" IsAspireProjectResource="false" />
<ProjectReference Include="..\..\Src\Nivot.Aspire.Hosting.ProjectCommander\Nivot.Aspire.Hosting.ProjectCommander.csproj" IsAspireProjectResource="false" />
<ProjectReference Include="..\Consumer\Consumer.csproj" />
<ProjectReference Include="..\DataGenerator\DataGenerator.csproj" />
</ItemGroup>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 663030c

Please sign in to comment.