Skip to content

Commit

Permalink
Remove check for non-empty Entity Path
Browse files Browse the repository at this point in the history
In the same vain as paolosalvatori#422 this simply removes the check for entity specific connection strings since it is just working flawlessly.

Fixes paolosalvatori#560
  • Loading branch information
avdv committed Jun 11, 2021
1 parent 29ccfcd commit 32acf76
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/ServiceBusExplorer/Forms/ConnectForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ public partial class ConnectForm : Form
//***************************
private const string ConnectionStringCannotBeNull = "The connection string cannot be null.";

private const string ConnectionStringCannotBeEntitySpecific = "The connection string cannot be entity specific.";

private const string ConnectionStringCannotBeEntitySpecificDetails = "Please make sure there is no \"EntityPath\" in the connection string. The connection string should be a namespace-level connection string and have the manage permission.";


#endregion

#region Private Instance Fields
Expand Down Expand Up @@ -622,18 +617,6 @@ private void btnSave_Click(object sender, EventArgs e)
return;
}

if (serviceBusConnectionStringBuilder.EntityPath != null)
{
MainForm.StaticWriteToLog(ConnectionStringCannotBeEntitySpecific);
MessageBox.Show(
this,
$"{ConnectionStringCannotBeEntitySpecific}\n\n{ConnectionStringCannotBeEntitySpecificDetails}",
"Save connection string",
MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
return;
}

var host = serviceBusConnectionStringBuilder.Endpoints.ToArray()[0].Host;

var index = host.IndexOf(".", StringComparison.Ordinal);
Expand Down

0 comments on commit 32acf76

Please sign in to comment.