public NotificationPanelViewComponent(RokonocontrolContext context, IConfiguration config, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor) { Context = context; Configuration = config; AutherizationManager = (AutherizationManager)autherizationManager; UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request); }
public ChangelogController(RokonocontrolContext context, IConfiguration currentConfig, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor) { Context = context; Config = currentConfig; AutherizationManager = (AutherizationManager)autherizationManager; UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request); }
public MessageHub(RokonocontrolContext dbContext, IConfiguration config, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor) { DatabaseContext = dbContext; Configuration = config; AutherizationManager = (AutherizationManager)autherizationManager; UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request); }
public BlogController(RokonocontrolContext context, IConfiguration config, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor, IHubContext <MessageHub> hubContext) { Context = context; Configuration = config; AutherizationManager = (AutherizationManager)autherizationManager; UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request); MessageContext = hubContext; }
public DashboardController(RokonocontrolContext context, IConfiguration config, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor) { Context = context; Configuration = config; AutherizationManager = (AutherizationManager)autherizationManager; var user = this.User; UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request); }