0

Say I have some dependency injectable singleton service, would it be possible to collect some information about the client within the service side, such as user IP address / browser type etc.. that the service was being injected into?

The main case for this is just logging, such that the service can log when an action takes place, but also by which client did it without the need for using an Authentication model.

Acknowledge there are some similar questions out there, however none specifically cover .NET 6 Blazor DI.

Searched the web for different strategies..

  • Does [this answer](https://stackoverflow.com/a/63030625/548997) apply to your situation? – Lex Mar 06 '23 at 18:36

0 Answers0