Exemplo n.º 1
0
        protected override IContentStore CreateFromArguments(DistributedCacheServiceArguments arguments)
        {
            var factory       = new DistributedContentStoreFactory(arguments);
            var topLevelStore = factory.CreateTopLevelStore().topLevelStore;

            return(topLevelStore);
        }
        protected override ICache CreateFromArguments(DistributedCacheServiceArguments arguments)
        {
            var factory = new DistributedContentStoreFactory(arguments);
            var store   = factory.CreateTopLevelStore().topLevelStore;

            return(new DistributedOneLevelCache(
                       store,
                       factory.Services.ContentLocationStoreServices.Instance,
                       Guid.NewGuid(),
                       passContentToMemoization: false));
        }