Created
November 29, 2023 15:44
-
-
Save BelRarr/f7e37877bb06754da18e2706b919afe1 to your computer and use it in GitHub Desktop.
inject the SecretClient into a controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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