mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 15:29:26 +01:00
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:
parent
758a60f3f8
commit
84ad7054ea
@ -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;
|
@ -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);
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user