Ejemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.neo4j.com.Response<org.neo4j.kernel.ha.com.master.HandshakeResult> handshake(final long txId, org.neo4j.storageengine.api.StoreId storeId)
        public override Response <HandshakeResult> Handshake(long txId, StoreId storeId)
        {
            Serializer serializer = buffer => buffer.writeLong(txId);
            Deserializer <HandshakeResult> deserializer = (buffer, temporaryBuffer) => new HandshakeResult(buffer.readLong(), buffer.readLong());

            return(SendRequest(_requestTypes.type(HaRequestTypes_Type.Handshake), RequestContext.EMPTY, serializer, deserializer, storeId, Org.Neo4j.com.storecopy.ResponseUnpacker_TxHandler_Fields.NoOpTxHandler));
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.neo4j.com.Response<int> createLabel(org.neo4j.com.RequestContext context, final String name)
        public override Response <int> CreateLabel(RequestContext context, string name)
        {
            Serializer         serializer   = buffer => writeString(buffer, name);
            Deserializer <int> deserializer = (buffer, temporaryBuffer) => buffer.readInt();

            return(SendRequest(_requestTypes.type(HaRequestTypes_Type.CreateLabel), context, serializer, deserializer));
        }
Ejemplo n.º 3
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.neo4j.com.Response<org.neo4j.kernel.ha.id.IdAllocation> allocateIds(org.neo4j.com.RequestContext context, final org.neo4j.kernel.impl.store.id.IdType idType)
        public override Response <IdAllocation> AllocateIds(RequestContext context, IdType idType)
        {
            Serializer serializer = buffer => buffer.writeByte(( int )idType);
            Deserializer <IdAllocation> deserializer = (buffer, temporaryBuffer) => ReadIdAllocation(buffer);

            return(SendRequest(_requestTypes.type(HaRequestTypes_Type.AllocateIds), context, serializer, deserializer));
        }
Ejemplo n.º 4
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.neo4j.com.Response<Void> endLockSession(org.neo4j.com.RequestContext context, final boolean success)
        public override Response <Void> EndLockSession(RequestContext context, bool success)
        {
            Serializer serializer = buffer => buffer.writeByte(success ? 1 : 0);

            return(SendRequest(_requestTypes.type(HaRequestTypes_Type.EndLockSession), context, serializer, VOID_DESERIALIZER));
        }