コード例 #1
0
 public NotificationPanelViewComponent(RokonocontrolContext context, IConfiguration config, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor)
 {
     Context              = context;
     Configuration        = config;
     AutherizationManager = (AutherizationManager)autherizationManager;
     UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request);
 }
コード例 #2
0
 public ChangelogController(RokonocontrolContext context, IConfiguration currentConfig, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor)
 {
     Context = context;
     Config  = currentConfig;
     AutherizationManager = (AutherizationManager)autherizationManager;
     UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request);
 }
コード例 #3
0
 public MessageHub(RokonocontrolContext dbContext, IConfiguration config, IAutherizationManager autherizationManager, IHttpContextAccessor httpContextAccessor)
 {
     DatabaseContext      = dbContext;
     Configuration        = config;
     AutherizationManager = (AutherizationManager)autherizationManager;
     UserId = AutherizationManager.GetCurrentUser(UserId, httpContextAccessor.HttpContext.Request);
 }
コード例 #4
0
 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;
 }
コード例 #5
0
        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);
        }