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 @@ -54,12 +54,12 @@
Visibility="{Binding InMaintenanceMode, Converter={StaticResource boolToVis}}"
Margin="0,0,0,20"
>
This instance is in database maintenance mode. All message processing is disabled and the REST API is unavailable.<LineBreak />ServicePulse and ServiceInsight cannot connect to this instance while it is in maintenance mode.<LineBreak />Launch <Hyperlink Command="{Binding OpenUrl}" CommandParameter="{Binding StorageUrl}">
This instance is in database maintenance mode. All message processing is disabled and the REST API is unavailable.<LineBreak />ServicePulse and ServiceInsight cannot connect to this instance while it is in maintenance mode.<LineBreak />Launch <Hyperlink Command="{Binding OpenUrl}" CommandParameter="{Binding RavenDbStudioUrl}">
RavenDB Management Studio
<Hyperlink.ContextMenu>
<ContextMenu>
<MenuItem Command="{Binding CopyToClipboard}"
CommandParameter="{Binding StorageUrl}"
CommandParameter="{Binding RavenDbStudioUrl}"
Header="Copy to Clipboard" />
</ContextMenu>
</Hyperlink.ContextMenu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ForceUpgradeAuditInstanceCommand forceUpgradeAuditCommand

public bool InMaintenanceMode => ServiceControlInstance.InMaintenanceMode;

public string StorageUrl => ServiceControlInstance.StorageUrl;
public string RavenStudioUrl => ServiceControlInstance.RavenDbStudioUrl;

public bool IsRunning
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ protected ServiceControlBaseService(IWindowsServiceController service)
/// <summary>
/// Raven management URL
/// </summary>
public string StorageUrl
public string RavenDbStudioUrl
{
get
{
string host = HostName switch
{
"*" or "+" => "localhost",
_ => HostName,
};
return $"http://{host}:{DatabaseMaintenancePort}/studio/index.html#databases";
var port = DatabaseMaintenancePort ?? 33334;
return $"http://localhost:{port}/studio/index.html#databases";
}
}

Expand Down
Loading