Skip to content

Commit

Permalink
Update for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
HillPhelmuth committed Mar 18, 2024
1 parent 4af1d67 commit ab4d4b6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
5 changes: 5 additions & 0 deletions AgentExample.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.LMStudio", "AutoGen
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.DotnetInteractive", "AutoGenPort\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj", "{B7F1BE21-634F-4DA3-9B00-45DF742101E7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8172C834-8704-4024-8C71-BCD68AA09EEE}"
ProjectSection(SolutionItems) = preProject
NuGet.config = NuGet.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
19 changes: 9 additions & 10 deletions AgentExample/Components/Routes.razor
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
@using AutoGenDotNet
<CascadingValue Value="@PageTitle" Name="PageTitle">
<CascadingValue Value="@_agentGroupInfo" Name="AgentGroupInfo">
<Router AppAssembly="@typeof(Program).Assembly" OnNavigateAsync="HandleNav">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
</Router>
</CascadingValue>

<Router AppAssembly="@typeof(Program).Assembly" OnNavigateAsync="HandleNav">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
</Router>

</CascadingValue>

@code{
@code {
public string PageTitle { get; set; } = "Home";
public AgentGroupInfo? _agentGroupInfo;
private void HandleNav(NavigationContext navigationContext)
{
var path = navigationContext.Path;
Expand Down
10 changes: 10 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<disabledPackageSources />
</configuration>

0 comments on commit ab4d4b6

Please sign in to comment.