示例#1
0
//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);
        }
示例#2
0
 public override void Handle(ReplicatedIdAllocationRequest replicatedIdAllocationRequest)
 {
     Output.Add(ChunkedReplicatedContent.Single(ID_RANGE_REQUEST_TYPE, channel => ReplicatedIdAllocationRequestSerializer.marshal(replicatedIdAllocationRequest, channel)));
 }
示例#3
0
//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);
            }
示例#4
0
 public override void Dispatch(ReplicatedIdAllocationRequest idRequest, long commandIndex, System.Action <Result> callback)
 {
     outerInstance.replicatedTxStateMachine.EnsuredApplied();
     outerInstance.idAllocationStateMachine.ApplyCommand(idRequest, commandIndex, callback);
 }