@@ -66,7 +66,6 @@ internal async Task<ReportCard> Add(ServiceControlInstallableBase details, IProg
6666 try
6767 {
6868 progress . Report ( 5 , 9 , "Registering URL ACLs..." ) ;
69- instanceInstaller . RegisterUrlAcl ( ) ;
7069 progress . Report ( 6 , 9 , "Instance setup in progress, this could take several minutes..." ) ;
7170 instanceInstaller . SetupInstance ( ) ;
7271 }
@@ -87,10 +86,6 @@ internal async Task<ReportCard> Add(ServiceControlInstallableBase details, IProg
8786 instanceInstaller . ReportCard . Warnings . Add ( $ "New instance did not startup - please check configuration for { instance . Name } ") ;
8887 }
8988 }
90- else
91- {
92- instanceInstaller . RemoveUrlAcl ( ) ;
93- }
9489
9590 instanceInstaller . ReportCard . SetStatus ( ) ;
9691 return instanceInstaller . ReportCard ;
@@ -193,7 +188,7 @@ internal async Task<ReportCard> Update(ServiceControlBaseService instance, bool
193188 internal ReportCard Delete ( string instanceName , bool removeDB , bool removeLogs , IProgress < ProgressDetails > progress = null )
194189 {
195190 progress ??= new Progress < ProgressDetails > ( ) ;
196- progress . Report ( 0 , 7 , "Stopping instance..." ) ;
191+ progress . Report ( 0 , 6 , "Stopping instance..." ) ;
197192 var instance = InstanceFinder . FindServiceControlInstance ( instanceName ) ;
198193 instance . ReportCard = new ReportCard ( ) ;
199194
@@ -208,27 +203,24 @@ internal ReportCard Delete(string instanceName, bool removeDB, bool removeLogs,
208203
209204 instance . BackupAppConfig ( ) ;
210205
211- progress . Report ( 1 , 7 , "Disabling startup..." ) ;
206+ progress . Report ( 1 , 6 , "Disabling startup..." ) ;
212207 instance . Service . SetStartupMode ( "Disabled" ) ;
213208
214- progress . Report ( 2 , 7 , "Deleting service..." ) ;
209+ progress . Report ( 2 , 6 , "Deleting service..." ) ;
215210 instance . Service . Delete ( ) ;
216211
217- progress . Report ( 3 , 7 , "Removing URL ACL..." ) ;
218- instance . RemoveUrlAcl ( ) ;
219-
220- progress . Report ( 4 , 7 , "Deleting install..." ) ;
212+ progress . Report ( 3 , 6 , "Deleting install..." ) ;
221213 instance . RemoveBinFolder ( ) ;
222214
223215 if ( removeLogs )
224216 {
225- progress . Report ( 5 , 7 , "Deleting logs..." ) ;
217+ progress . Report ( 4 , 6 , "Deleting logs..." ) ;
226218 instance . RemoveLogsFolder ( ) ;
227219 }
228220
229221 if ( removeDB )
230222 {
231- progress . Report ( 6 , 7 , "Deleting database..." ) ;
223+ progress . Report ( 5 , 6 , "Deleting database..." ) ;
232224 instance . RemoveDataBaseFolder ( ) ;
233225 }
234226
@@ -268,8 +260,6 @@ internal async Task<ReportCard> Add(MonitoringNewInstance details, IProgress<Pro
268260
269261 try
270262 {
271- progress . Report ( 5 , 9 , "Registering URL ACLs..." ) ;
272- instanceInstaller . RegisterUrlAcl ( ) ;
273263 progress . Report ( 6 , 9 , "Creating queues..." ) ;
274264 instanceInstaller . SetupInstance ( ) ;
275265 }
@@ -290,10 +280,6 @@ internal async Task<ReportCard> Add(MonitoringNewInstance details, IProgress<Pro
290280 instanceInstaller . ReportCard . Warnings . Add ( $ "New instance did not startup - please check configuration for { instance . Name } ") ;
291281 }
292282 }
293- else
294- {
295- instanceInstaller . RemoveUrlAcl ( ) ;
296- }
297283
298284 instanceInstaller . ReportCard . SetStatus ( ) ;
299285 return instanceInstaller . ReportCard ;
@@ -386,7 +372,7 @@ internal async Task<ReportCard> Update(MonitoringInstance instance, bool startSe
386372 internal ReportCard Delete ( string instanceName , bool removeLogs , IProgress < ProgressDetails > progress = null )
387373 {
388374 progress ??= new Progress < ProgressDetails > ( ) ;
389- progress . Report ( 0 , 7 , "Stopping instance..." ) ;
375+ progress . Report ( 0 , 5 , "Stopping instance..." ) ;
390376 var instance = InstanceFinder . FindMonitoringInstance ( instanceName ) ;
391377 instance . ReportCard = new ReportCard ( ) ;
392378
@@ -401,21 +387,18 @@ internal ReportCard Delete(string instanceName, bool removeLogs, IProgress<Progr
401387
402388 instance . BackupAppConfig ( ) ;
403389
404- progress . Report ( 1 , 7 , "Disabling startup..." ) ;
390+ progress . Report ( 1 , 5 , "Disabling startup..." ) ;
405391 instance . Service . SetStartupMode ( "Disabled" ) ;
406392
407- progress . Report ( 2 , 7 , "Deleting service..." ) ;
393+ progress . Report ( 2 , 5 , "Deleting service..." ) ;
408394 instance . Service . Delete ( ) ;
409395
410- progress . Report ( 3 , 7 , "Removing URL ACL..." ) ;
411- instance . RemoveUrlAcl ( ) ;
412-
413- progress . Report ( 4 , 7 , "Deleting install..." ) ;
396+ progress . Report ( 3 , 5 , "Deleting install..." ) ;
414397 instance . RemoveBinFolder ( ) ;
415398
416399 if ( removeLogs )
417400 {
418- progress . Report ( 5 , 7 , "Deleting logs..." ) ;
401+ progress . Report ( 4 , 5 , "Deleting logs..." ) ;
419402 instance . RemoveLogsFolder ( ) ;
420403 }
421404
0 commit comments