public static void ManageComponentsState(BeSafeConfig configuration, PipeServer pipeServer, bool stoppingService) { ProcessRegulator.Instance().Config(configuration, pipeServer, stoppingService); ModuleRegulator.Instance().Config(configuration, pipeServer, stoppingService); DirectoryRegulator.Instance().Config(configuration, pipeServer, stoppingService); RegistryRegulator.Instance().Config(configuration, pipeServer, stoppingService); SecureVolumeRegulator.Instance().Config(configuration, pipeServer, stoppingService); }
public static ModuleRegulator Instance() => (SingletonInstance ?? (SingletonInstance = new ModuleRegulator()));