//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldMarshalIdRangeRequest() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldMarshalIdRangeRequest() { ByteBuf buffer = Unpooled.buffer(); ReplicatedContent message = new ReplicatedIdAllocationRequest(new MemberId(System.Guid.randomUUID()), IdType.PROPERTY, 100, 200); AssertMarshalingEquality(buffer, message); }
public override void Handle(ReplicatedIdAllocationRequest replicatedIdAllocationRequest) { Output.Add(ChunkedReplicatedContent.Single(ID_RANGE_REQUEST_TYPE, channel => ReplicatedIdAllocationRequestSerializer.marshal(replicatedIdAllocationRequest, channel))); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void handle(org.neo4j.causalclustering.core.state.machines.id.ReplicatedIdAllocationRequest replicatedIdAllocationRequest) throws java.io.IOException public override void Handle(ReplicatedIdAllocationRequest replicatedIdAllocationRequest) { WritableChannel.put(ID_RANGE_REQUEST_TYPE); ReplicatedIdAllocationRequestSerializer.marshal(replicatedIdAllocationRequest, WritableChannel); }
public override void Dispatch(ReplicatedIdAllocationRequest idRequest, long commandIndex, System.Action <Result> callback) { outerInstance.replicatedTxStateMachine.EnsuredApplied(); outerInstance.idAllocationStateMachine.ApplyCommand(idRequest, commandIndex, callback); }