infra du badge paramêtre manquant

This commit is contained in:
2017-03-05 13:48:11 +01:00
parent 071660cf89
commit ebe93dcbea
15 changed files with 104 additions and 26 deletions

View File

@ -18,8 +18,10 @@ namespace Yavsc
{
private Client GetApplication(string clientId)
{
var dbContext = new ApplicationDbContext();
var app = dbContext.Applications.FirstOrDefault(x => x.Id == clientId);
Client app=null;
using (var dbContext = new ApplicationDbContext()) {
app = dbContext.Applications.FirstOrDefault(x => x.Id == clientId);
}
return app;
}
private readonly ConcurrentDictionary<string, string> _authenticationCodes = new ConcurrentDictionary<string, string>(StringComparer.Ordinal);