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()); }
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()); }
public RemoteCachePuppet(DistributedConfiguration configuration, NodeSession session) { this.configuration = configuration; this.session = session; this.serializer = new PofSerializer(configuration.PofContext); }
public LocalCachePuppet(DistributedConfiguration configuration) { this.configuration = configuration; this.localCache = new InMemoryCache <K, V>(configuration.Name, null); this.puppetClient = new PuppetClient <K, V>(this, configuration); }