public IEngine Init(Config cfg) { this.instance.InitOnce(); this.storageConfig = cfg; this.storageName = "CosmosDbSql:" + cfg.CosmosDbSqlDatabase + "/" + cfg.CosmosDbSqlCollection; this.cosmosDbSql = this.factory.Resolve <ISDKWrapper>(); this.instance.InitComplete(); this.log.Debug("Cosmos DB SQL instance initialized", () => new { this.storageName }); return(this); }
public IEngine Init(Config cfg) { this.instance.InitOnce(); this.storageConfig = cfg; this.storageName = "TableStorage:" + cfg.TableStorageTableName; this.tableStorage = this.factory.Resolve <ISDKWrapper>(); this.instance.InitComplete(); this.log.Debug("Table storage instance initialized", () => new { this.storageName }); return(this); }
public Engine( IFactory factory, ILogger logger, IInstance instance) { this.log = logger; this.instance = instance; this.factory = factory; this.disposedValue = false; this.storageConfig = null; this.tableStorage = null; }
public Engine( IFactory factory, ILogger logger, IInstance instance) { this.log = logger; this.instance = instance; this.factory = factory; this.disposedValue = false; this.storageConfig = null; this.cosmosDbSqlClient = null; this.cosmosDbSql = null; }