Skip to content

Commit

Permalink
Add ServiceDefaults to get tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
eerhardt committed May 31, 2024
1 parent 1866a29 commit cbefffc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>61c10aac-ef34-4c71-a496-6d2e15aec603</UserSecretsId>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions playground/webpubsub/WebPubSubWeb/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

var builder = WebApplication.CreateBuilder(args);

builder.AddServiceDefaults();

builder.AddKeyedAzureWebPubSubServiceClient("wps1", "chatHub");
builder.AddKeyedAzureWebPubSubServiceClient("wps1", "notificationHub");

Expand Down
1 change: 1 addition & 0 deletions playground/webpubsub/WebPubSubWeb/WebPubSubWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<ItemGroup>
<ProjectReference Include="..\..\..\src\Components\Aspire.Azure.Messaging.WebPubSub\Aspire.Azure.Messaging.WebPubSub.csproj" />
<ProjectReference Include="..\..\Playground.ServiceDefaults\Playground.ServiceDefaults.csproj" />
</ItemGroup>

</Project>

0 comments on commit cbefffc

Please sign in to comment.