public CustomerRepository(IServiceProvider services) { this.scope = services.CreateScope(); this.tokenTestApiContext = this.scope.ServiceProvider.GetRequiredService <TokenTestApiContext>(); }
public CustomerRepository(IServiceProvider services) { this.scope = services.CreateScope(); this.tokenTestApiContext = this.scope.ServiceProvider.GetRequiredService <TokenTestApiContext>(); }