Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGES.md

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions Tests/TestsClients/Blazor-WebAssembly/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,15 @@
CurrentConnectionState = statusInfo.ConnectionState;
IsConnected = statusInfo.ConnectionState == XrpConnectionState.Connected;

AddStatusMessage($"[{statusInfo.ConnectionState}] {statusInfo.Message}", type);
Console.WriteLine($"Connection Status: [{statusInfo.ConnectionState}] {statusInfo.Message}");
// The reason is shown only where it means something: on a notification that is not
// an ending it is None, and printing that on every line would bury the one place
// where "still trying" and "gave up" finally differ by more than their wording.
string stopped = statusInfo.StopReason == ConnectionStopReason.None
? string.Empty
: $" [stopped: {statusInfo.StopReason}]";

AddStatusMessage($"[{statusInfo.ConnectionState}]{stopped} {statusInfo.Message}", type);
Console.WriteLine($"Connection Status: [{statusInfo.ConnectionState}]{stopped} {statusInfo.Message}");
StateHasChanged();
});
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<RootNamespace>Xrpl.Samples.ConnectionLifecycle</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Xrpl\Xrpl.csproj" />
</ItemGroup>

</Project>
Loading
Loading