ASP.NET 5 DI accessing request data

Is there anyway to access request data when I'm using DI?

An example would be, a user logs in and gets an Id, this Id points to a connecting string for their database. When I'm doing my DI for that database's context, how can I access the user's Id so I can get their connection string? I can't find any info on it.

by Steveadoo via /r/csharp

Leave a Reply