コード例 #1
0
 public CachedGrainLocator(
     GrainDirectoryResolver grainDirectoryResolver,
     IClusterMembershipService clusterMembershipService)
 {
     this.grainDirectoryResolver   = grainDirectoryResolver;
     this.clusterMembershipService = clusterMembershipService;
     this.cache = new LRUBasedGrainDirectoryCache(GrainDirectoryOptions.DEFAULT_CACHE_SIZE, GrainDirectoryOptions.DEFAULT_MAXIMUM_CACHE_TTL);
 }
コード例 #2
0
 public GrainLocatorResolver(
     GrainDirectoryResolver grainDirectoryResolver,
     CachedGrainLocator cachedGrainLocator,
     DhtGrainLocator dhtGrainLocator,
     ClientGrainLocator clientGrainLocator)
 {
     this.getLocatorInternal     = GetGrainLocatorInternal;
     this.grainDirectoryResolver = grainDirectoryResolver;
     this.cachedGrainLocator     = cachedGrainLocator;
     this.dhtGrainLocator        = dhtGrainLocator;
     this.clientGrainLocator     = clientGrainLocator;
 }