//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Override @Nonnull public org.neo4j.commandline.admin.AdminCommand create(java.nio.file.Path homeDir, java.nio.file.Path configDir, org.neo4j.commandline.admin.OutsideWorld outsideWorld) public override AdminCommand Create(Path homeDir, Path configDir, OutsideWorld outsideWorld) { bool debug = System.getenv().get("NEO4J_DEBUG") != null; LogProvider logProvider = FormattedLogProvider.withDefaultLogLevel(debug ? Level.DEBUG : Level.NONE).toOutputStream(outsideWorld.OutStream()); Monitors monitors = new Monitors(); OnlineBackupContextFactory contextBuilder = new OnlineBackupContextFactory(homeDir, configDir); BackupModule backupModule = new BackupModule(outsideWorld, logProvider, monitors); BackupSupportingClassesFactoryProvider classesFactoryProvider = ProvidersByPriority.findFirst().orElseThrow(NoProviderException()); BackupSupportingClassesFactory supportingClassesFactory = classesFactoryProvider.GetFactory(backupModule); BackupStrategyCoordinatorFactory coordinatorFactory = new BackupStrategyCoordinatorFactory(backupModule); return(new OnlineBackupCommand(outsideWorld, contextBuilder, supportingClassesFactory, coordinatorFactory)); }
private static Server CreateServer() { return(new Server(_channel => { }, FormattedLogProvider.withDefaultLogLevel(Level.DEBUG).toOutputStream(System.out), FormattedLogProvider.withDefaultLogLevel(Level.DEBUG).toOutputStream(System.out), new ListenSocketAddress("localhost", PortAuthority.allocatePort()), "serverName")); }