Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2020 18:10
What would you like to do?
public class UserController : ControllerBase
private readonly IContextReaderService _contextService;
public UserController(IContextReaderService contextService)
_contextService = contextService;
public IActionResult GetUser()
return Ok(_contextService.Username);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment