MalwareSourceCode/MSIL/Trojan/Win32/P/Trojan.Win32.Patched.mf-06a1c79ea1bf078d9f5816243d6887697530720ed581c2975d99154e2a24648f/Concrete/ConcreteServicesSetup.cs
2022-08-18 06:28:56 -05:00

40 lines
1.6 KiB
C#

// Decompiled with JetBrains decompiler
// Type: VMS.OSService.Concrete.ConcreteServicesSetup
// Assembly: VMS.OSP.Service, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null
// MVID: 7B29B897-26BF-407B-B0D0-14253383A174
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan.Win32.Patched.mf-06a1c79ea1bf078d9f5816243d6887697530720ed581c2975d99154e2a24648f.exe
using System.Diagnostics;
using VMS.OSService.Abstract;
using VMS.OSService.Concrete.Inventory;
namespace VMS.OSService.Concrete
{
public class ConcreteServicesSetup : BaseServicesSetup
{
private string cCompInventory = "Inventory";
private string cCompInventoryUpdate = "InventoryUpdate";
private string cCompMaintenance = "Maintenance";
private string cCompPlatformServiceController = "PlatformServiceController";
public ConcreteServicesSetup(EventLog evtLog)
: base(evtLog)
{
this.SetupServices();
}
public void SetupServices()
{
if (this.ServiceComponentEnabled(this.cCompInventory))
this.AddService((AbstractService) new InventoryReplicator());
if (this.ServiceComponentEnabled(this.cCompInventoryUpdate))
this.AddService((AbstractService) new InventoryUpdate());
if (this.ServiceComponentEnabled(this.cCompMaintenance))
this.AddService((AbstractService) new VMS.OSService.Concrete.Maintenance.Maintenance());
if (!this.ServiceComponentEnabled(this.cCompPlatformServiceController))
return;
this.AddService((AbstractService) new VMS.OSService.Concrete.PlatformServiceController.PlatformServiceController());
}
}
}