public PersistentHashTableActions(JET_INSTANCE instance, string database, Cache cache, Guid instanceId, IVersionGenerator versionGenerator, IDictionary <string, JET_COLUMNID> keysColumns, IDictionary <string, JET_COLUMNID> listColumns, IDictionary <string, JET_COLUMNID> replicationColumns, IDictionary <string, JET_COLUMNID> replicationRemovalColumns, IDictionary <string, JET_COLUMNID> dataColumns) { this.cache = cache; this.dataColumns = dataColumns; this.replicationRemovalColumns = replicationRemovalColumns; this.replicationColumns = replicationColumns; this.listColumns = listColumns; this.keysColumns = keysColumns; this.instanceId = instanceId; this.versionGenerator = versionGenerator; session = new Session(instance); transaction = new Transaction(session); Api.JetOpenDatabase(session, database, null, out dbid, OpenDatabaseGrbit.None); keys = new Table(session, dbid, "keys", OpenTableGrbit.None); data = new Table(session, dbid, "data", OpenTableGrbit.None); list = new Table(session, dbid, "lists", OpenTableGrbit.None); replication = new Table(session, dbid, "replication_info", OpenTableGrbit.None); replicationRemoval = new Table(session, dbid, "replication_removal_info", OpenTableGrbit.None); }
public TagRenderer(string routeRootPath, Dictionary<string, IPackage> javascripts, Dictionary<string, IPackage> stylesheets, IVersionGenerator versionGenerator, IDebugState debugState) { this.routeRootPath = routeRootPath; this.javascripts = javascripts; this.stylesheets = stylesheets; this.debugState = debugState; this.versionGenerator = versionGenerator; }
public AddressBookFake(long id, Guid key, string name) { VersionGenerator = new VersionGeneratorFake(); Id = id; Key = key; ReadOnly = true; Name = name; IsOnline = false; }
internal PackageContainer() { this.routePrefix = "assets"; this.appPath = HttpRuntime.AppDomainAppPath; this.templateConfig = new TemplateConfiguration( tmplNamespace: "JST", tmplFunction: "_.template", tmplExtension: "jst"); this.debugState = new DebugState(); this.versionGenerator = new HashedVersionGenerator(); this.javascriptProcessor = new YuiJavaScriptProcessor(); this.stylesheetProcessor = new DotLessStyleSheetProcessor(this.appPath, this.debugState); this.resolver = new AssetResolver(new FileSystemWrapper()); }
public void Initialize() { ConfigureInstance(instance); try { Api.JetInit(ref instance); EnsureDatabaseIsCreatedAndAttachToDatabase(); SetIdFromDb(); GatherColumnsIds(); versionGenerator = new HiLoVersionGenerator(instance, 4096, database); } catch (Exception e) { Dispose(); throw new InvalidOperationException("Could not open cache: " + database, e); } }
public IPackageContainer VersionGenerator(IVersionGenerator versionGenerator) { Contract.Requires(versionGenerator != null); this.versionGenerator = versionGenerator; return this; }