private static void PutUInt64() { var systemL = AllPet.Pipeline.PipelineSystem.CreatePipelineSystemV1(new AllPet.Common.Logger()); systemL.OpenNetwork(new AllPet.peer.tcp.PeerOption()); var remote = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("127.0.0.1"), 8888); var systemref = systemL.ConnectAsync(remote).Result; systemL.Start(); var actor = systemL.GetPipeline(null, "127.0.0.1:8888/simpledb"); { PutUInt64Command command = new PutUInt64Command() { TableId = new byte[] { 0x02, 0x02, 0x03 }, Key = new byte[] { 0x14, 0x13 }, Data = 18446744073709551614 }; var bytes = ProtocolFormatter.Serialize <PutUInt64Command>(Method.PutUint64, command); actor.Tell(bytes); } systemL.CloseListen(); systemL.CloseNetwork(); systemL.Dispose(); }
public void Handle(PutUInt64Command command) { Console.WriteLine("PutUInt64Command"); this.SimpleDb.PutUInt64Direct(command.TableId, command.Key, command.Data); }