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)); } }
public RemoteCachePuppet(DistributedConfiguration configuration, NodeSession session) { this.configuration = configuration; this.session = session; this.serializer = new PofSerializer(configuration.PofContext); }