public async ValueTask InitializeAsync(StorageClientContext context) { await this.EnsureDatabaseObjectsAsync(); this.ContainerName = context.Name; this.Options = context.GetOptions <SqlServerBlobOptions>(); }
public async ValueTask InitializeAsync(StorageClientContext context) { this.Options = context.GetOptions <TOptions>(); this.Name = context.Name; this.PoolPolicy = new ModelPoolPolicy <TOptions>(this.Options); this.ModelPool = new DefaultObjectPool <IModel>(this.PoolPolicy, Environment.ProcessorCount * 2); await Task.CompletedTask; }