public async Task <IStreamStore> GetStreamStore(string schema) { var settings = new MsSqlStreamStoreV3Settings(ConnectionString) { Schema = schema, GetUtcNow = () => GetUtcNow(), DisableDeletionTracking = _disableDeletionTracking }; var store = new MsSqlStreamStoreV3(settings); await store.CreateSchema(); return(store); }
public async Task <MsSqlStreamStoreV3> GetMsSqlStreamStore() { await CreateDatabase(); var settings = new MsSqlStreamStoreV3Settings(ConnectionString) { Schema = _schema, GetUtcNow = () => GetUtcNow() }; var store = new MsSqlStreamStoreV3(settings); await store.CreateSchema(); return(store); }