//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: public ReadReplicaDatabaseAvailabilityService(@Context OutputFormat output, @Context GraphDatabaseService db) public ReadReplicaDatabaseAvailabilityService(OutputFormat output, GraphDatabaseService db) { if (db is ReadReplicaGraphDatabase) { this._readReplica = ( ReadReplicaGraphDatabase )db; } else { this._readReplica = null; } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: public MasterInfoService(@Context OutputFormat output, @Context GraphDatabaseService db) public MasterInfoService(OutputFormat output, GraphDatabaseService db) { this._output = output; if (db is HighlyAvailableGraphDatabase) { this._haDb = ( HighlyAvailableGraphDatabase )db; } else { this._haDb = null; } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: public CoreDatabaseAvailabilityService(@Context OutputFormat output, @Context GraphDatabaseService db) public CoreDatabaseAvailabilityService(OutputFormat output, GraphDatabaseService db) { this._output = output; if (db is CoreGraphDatabase) { this._coreDatabase = ( CoreGraphDatabase )db; } else { this._coreDatabase = null; } }
public static CausalClusteringStatus Build(OutputFormat output, GraphDatabaseService db) { if (db is CoreGraphDatabase) { return(new CoreStatus(output, ( CoreGraphDatabase )db)); } else if (db is ReadReplicaGraphDatabase) { return(new ReadReplicaStatus(output, ( ReadReplicaGraphDatabase )db)); } else { return(new NotCausalClustering(output)); } }
internal NotCausalClustering(OutputFormat output) : base(output) { }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @GET public javax.ws.rs.core.Response getServiceDefinition(@Context UriInfo uriInfo, @Context OutputFormat output) public virtual Response GetServiceDefinition(UriInfo uriInfo, OutputFormat output) { ServerRootRepresentation representation = new ServerRootRepresentation(uriInfo.BaseUri, _neoServer.Services); return(output.ok(representation)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: public CausalClusteringService(@Context OutputFormat output, @Context GraphDatabaseService db) public CausalClusteringService(OutputFormat output, GraphDatabaseService db) { this._status = CausalClusteringStatusFactory.Build(output, db); }
// Your IDE might tell you to make this less visible than public. Don't. JAX-RS demands is to be public. //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: public DiscoveryService(@Context Config config, @Context OutputFormat outputFormat, @Context DiscoverableURIs uris) public DiscoveryService(Config config, OutputFormat outputFormat, DiscoverableURIs uris) { this._config = config; this._outputFormat = outputFormat; this._uris = uris; }