Ejemplo n.º 1
0
 public Task <TokenModel> GetToken(GetUsersTokenForApplicationCommandAsync.GetTokenParams tokenParams, GetUsersTokenForApplicationCommandAsync.User user, string application, string role)
 {
     return(Task.Factory.StartNew(() => new TokenModel()
     {
         Token = "you got it."
     }));
 }
 public Task <TokenModel> GetToken(GetUsersTokenForApplicationCommandAsync.GetTokenParams tokenParams, GetUsersTokenForApplicationCommandAsync.User user, string application, string role)
 {
     return(CommandExecutor.ExecuteCommandAsync(new GetUsersTokenForApplicationCommandAsync(tokenParams, user, application, role)));
 }