public InMemoryViewModelServerStore(IDotvvmCacheAdapter cacheAdapter, IOptions <ViewModelServerCacheConfiguration> cacheConfigurationOptions)
 {
     this.cacheAdapter = cacheAdapter;
     this.cacheConfigurationOptions = cacheConfigurationOptions;
 }
 public DotvvmBindingCacheHelper(IDotvvmCacheAdapter cache, BindingCompilationService compilationService)
 {
     this.cache = cache ?? throw new ArgumentNullException(nameof(cache));
     this.compilationService = compilationService;
 }
Exemple #3
0
 public BindingCompilationService(IOptions <BindingCompilationOptions> options, IExpressionToDelegateCompiler expressionCompiler, IDotvvmCacheAdapter cache)
 {
     this.expressionCompiler = expressionCompiler;
     this.noInitService      = new Lazy <BindingCompilationService>(() => new NoInitService(options, expressionCompiler, cache));
     foreach (var p in GetDelegates(options.Value.TransformerClasses))
     {
         resolvers.AddDelegate(p);
     }
     this.Cache = new DotvvmBindingCacheHelper(cache, this);
 }
 public CachedValuesViewModel(IDotvvmCacheAdapter cacheAdapter)
 {
     this.cacheAdapter = cacheAdapter;
     Text = cacheAdapter.Get <string>(key);
 }
Exemple #5
0
 public NoInitService(IOptions <BindingCompilationOptions> options, IExpressionToDelegateCompiler expressionCompiler, IDotvvmCacheAdapter cache) : base(options, expressionCompiler, cache)
 {
 }