예제 #1
0
        public PuppetClient(LocalCachePuppet <K, V> puppet, DistributedConfiguration configuration)
        {
            this.puppet        = puppet;
            this.configuration = configuration;
//         this.requestThread = new Thread(RequestThreadStart).With(t => { t.IsBackground = true; }).With(t => t.Start());
//         this.processorThread = new Thread(ProcessorThreadStart).With(t => { t.IsBackground = false; }).With(t => t.Start());
        }
예제 #2
0
 public LocalPuppeteerServer(ICachePuppeteer <K, V> puppeteer, DistributedConfiguration configuration)
 {
     this.cancellationToken = cancellationTokenSource.Token;
     this.puppeteer         = puppeteer;
     this.configuration     = configuration;
     this.pofContext        = configuration.PofContext;
     this.listenerThread    = new Thread(ListenerThreadStart).With(t => { t.IsBackground = true; }).With(t => t.Start());
     this.processorThread   = new Thread(ProcessorThreadStart).With(t => { t.IsBackground = false; }).With(t => t.Start());
 }
예제 #3
0
 public RemoteCachePuppet(DistributedConfiguration configuration, NodeSession session)
 {
     this.configuration = configuration;
     this.session       = session;
     this.serializer    = new PofSerializer(configuration.PofContext);
 }
예제 #4
0
 public LocalCachePuppet(DistributedConfiguration configuration)
 {
     this.configuration = configuration;
     this.localCache    = new InMemoryCache <K, V>(configuration.Name, null);
     this.puppetClient  = new PuppetClient <K, V>(this, configuration);
 }