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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public SignalRController(SignalRSettings signalRSettings)
/// <summary>
/// Returns SignalR Connection Info.
/// </summary>
/// <returns>Returns SignalR Connection Info as Json {SignalRUri,SignalPort}</returns>
/// <returns>Returns SignalR Connection Info as Json {SignalRUri,SignalRPort}</returns>
/// <response code="200">Returns connection info</response>
[Route("getConnectionInfo")]
[HttpGet]
Expand All @@ -32,8 +32,8 @@ public IActionResult GetConnectionInfo()
return this.Json(new
{
this.signalRSettings.SignalRUri,
this.signalRSettings.SignalPort
this.signalRSettings.SignalRPort
});
}
}
}
}
6 changes: 3 additions & 3 deletions src/Stratis.Bitcoin.Features.SignalR/SignalRSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class SignalRSettings
public Uri SignalRUri { get; set; }

/// <summary>Port of node's Signal interface.</summary>
public int SignalPort { get; set; }
public int SignalRPort { get; set; }

public SignalRSettings(NodeSettings nodeSettings)
{
Expand All @@ -42,12 +42,12 @@ public SignalRSettings(NodeSettings nodeSettings)
if (uri.IsDefaultPort)
{
this.SignalRUri = new Uri($"{host}:{port}");
this.SignalPort = port;
this.SignalRPort = port;
}
else
{
this.SignalRUri = uri;
this.SignalPort = uri.Port;
this.SignalRPort = uri.Port;
}
}

Expand Down