Skip to content

Instantly share code, notes, and snippets.

@BelRarr
Created November 29, 2023 15:44
Show Gist options
  • Save BelRarr/f7e37877bb06754da18e2706b919afe1 to your computer and use it in GitHub Desktop.
Save BelRarr/f7e37877bb06754da18e2706b919afe1 to your computer and use it in GitHub Desktop.
inject the SecretClient into a controller
private readonly DbContext dbContext;
private readonly SecretClient secretClient;
public MyController(DbContext dbContext, SecretClient secretClient)
{
this.dbContext = dbContext;
this.secretClient = secretClient;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment