Compacted the ActionBase constructors and renamed file to match the class name.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2022-03-31 21:33:24 +01:00
parent 758a60f3f8
commit 84ad7054ea
3 changed files with 3 additions and 13 deletions

View File

@ -231,17 +231,7 @@ namespace XenAdmin.Actions
public bool ShowProgress { get; protected set; } = true;
public ActionBase(string title, string description, bool suppressHistory)
: this(title, description, suppressHistory, false)
{
}
public ActionBase(string title, string description, bool suppressHistory, bool completeImmediately)
: this(title, description, suppressHistory, completeImmediately, null)
{}
public ActionBase(string title, string description, bool suppressHistory, bool completeImmediately, string error)
public ActionBase(string title, string description, bool suppressHistory, bool completeImmediately = false, string error = null)
{
Title = title;
_description = description;

View File

@ -953,7 +953,7 @@ namespace XenAdmin.Network
string msg = string.Format(Messages.CONNECTING_NOTICE_TEXT, name);
log.Info($"Connecting to {name} in progress.");
ConnectAction = new ActionBase(title, msg, false, false);
ConnectAction = new ActionBase(title, msg, false);
ExpectPasswordIsCorrect = true;
OnConnectionResult(true, null, null);

View File

@ -59,7 +59,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Actions\Action.cs" />
<Compile Include="Actions\ActionBase.cs" />
<Compile Include="Actions\HealthCheck\HealthCheckAuthenticationAction.cs" />
<Compile Include="Actions\HealthCheck\SaveHealthCheckSettingsAction.cs" />
<Compile Include="Actions\HealthCheck\TransferHealthCheckSettingAction.cs" />