示例#1
0
        private void HandleNodeConnected(Socket nodeSocket)
        {
            var session = new NodeSession(nodeSocket, NodeRole.Puppeteer);

            if (session.RemoteRole == NodeRole.Puppet)
            {
                this.puppeteer.RegisterPuppet(new RemoteCachePuppet <K, V>(configuration, session));
            }
        }
示例#2
0
 public RemoteCachePuppet(DistributedConfiguration configuration, NodeSession session)
 {
     this.configuration = configuration;
     this.session       = session;
     this.serializer    = new PofSerializer(configuration.PofContext);
 }