Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Jun 19, 2024
1 parent 9f6c285 commit 9196902
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sample/Handlers/TickerStreamRequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public async IAsyncEnumerable<string> Handle(TickerRequest request, Cancellation
{
for (var i = 0; i < request.Repeat; i++)
{
await Task.Delay(TimeSpan.FromSeconds(request.GapSeconds));
await Task.Delay(TimeSpan.FromSeconds(request.GapSeconds), cancellationToken);
var value = i * request.Multiplier;
yield return ($"{i} : {value}");
}
Expand Down
1 change: 1 addition & 0 deletions Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<ProjectReference Include="..\src\Shiny.Mediator.Blazor\Shiny.Mediator.Blazor.csproj" />
<ProjectReference Include="..\src\Shiny.Mediator.Contracts\Shiny.Mediator.Contracts.csproj"/>
<ProjectReference Include="..\src\Shiny.Mediator.Maui\Shiny.Mediator.Maui.csproj"/>
<ProjectReference Include="..\src\Shiny.Mediator.Resilience\Shiny.Mediator.Resilience.csproj" />
<ProjectReference Include="..\src\Shiny.Mediator\Shiny.Mediator.csproj"/>
<ProjectReference Include="..\src\Shiny.Mediator.SourceGenerators\Shiny.Mediator.SourceGenerators.csproj"
OutputItemType="Analyzer"
Expand Down
18 changes: 17 additions & 1 deletion Sample/TriggerPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@
Command="{Binding CancelCommand}"/>
</TableSection>

<TableSection Title="Precanned">
<TableSection Title="Other Request Samples">
<TextCell Text="Error Trap"
Command="{Binding ErrorTrap}" />
</TableSection>

<TableSection Title="Cache">
<!--TODO - clear cache-->
</TableSection>

<TableSection Title="Resiliency">
<!--TODO-->
</TableSection>

<TableSection Title="Streaming">
<EntryCell Label="Repeat"
Text="{Binding StreamRepeat}"
Expand All @@ -47,6 +55,14 @@
<TextCell Text="Last Response"
Detail="{Binding StreamLastResponse}" />
</TableSection>

<TableSection Title="Timer Refresh">
<!--start/cancel-->
</TableSection>

<TableSection Title="Replay">
<!--run-->
</TableSection>
</TableRoot>
</TableView>
</ContentPage>

0 comments on commit 9196902

Please sign in to comment.