コード例 #1
0
ファイル: PuppetClient.cs プロジェクト: briankchan/libimdg
        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);
 }