예제 #1
0
        public LinksController(UserManager <IdentityUser> userManager, ApplicationDbContext context, IDetection detection)
        {
            _userManager = userManager;
            _context     = context;

            _detection = detection;
        }
예제 #2
0
 public HomeController(IBOUsers IBOUsers, IHostingEnvironment HostEnvironment, IDetection detection, IActionContextAccessor accessor, ILogger <HomeController> logger)
 {
     _IBOUsers        = IBOUsers;
     _HostEnvironment = HostEnvironment;
     _detection       = detection;
     _accessor        = accessor;
     _logger          = logger;
 }
예제 #3
0
        //private readonly CloudBlobClient _blobClient;

        //public AccountService(IConfiguration configuration, IUnitOfWork uow, IStringLocalizer<IAccountService> localizer, IDetection detection, CloudBlobClient blobClient)
        public AccountService(IConfiguration configuration, IUnitOfWork uow, IStringLocalizer <IAccountService> localizer, IDetection detection)
        {
            _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
            _uow           = uow ?? throw new ArgumentNullException(nameof(uow));
            _localizer     = localizer ?? throw new ArgumentNullException(nameof(localizer));
            _detection     = detection ?? throw new ArgumentNullException(nameof(detection));
            //_blobClient = blobClient ?? throw new ArgumentNullException(nameof(blobClient));
        }
예제 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="detection"></param>
 /// <param name="userManager"></param>
 /// <param name="urlHelper"></param>
 /// <param name="mapper"></param>
 /// <param name="accessor"></param>
 public UserActivityService(IActivityContext context, IDetection detection, IUserManager <GearUser> userManager, IUrlHelper urlHelper, IMapper mapper, IHttpContextAccessor accessor)
 {
     _context     = context;
     _detection   = detection;
     _userManager = userManager;
     _urlHelper   = urlHelper;
     _mapper      = mapper;
     _accessor    = accessor;
 }
예제 #5
0
 public AccountService(IConfiguration configuration, IUnitOfWork uow, IDetection detection,
                       IFileService fileService, ISubscriptionService subscriptionService, IProfileHelthHelper profileHelthHelper)
 {
     _configuration       = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _uow                 = uow ?? throw new ArgumentNullException(nameof(uow));
     _detection           = detection ?? throw new ArgumentNullException(nameof(detection));
     _fileService         = fileService ?? throw new ArgumentNullException(nameof(fileService));
     _subscriptionService = subscriptionService ?? throw new ArgumentNullException(nameof(subscriptionService));
     _profileHelthHelper  = profileHelthHelper ?? throw new ArgumentNullException(nameof(profileHelthHelper));
 }
예제 #6
0
 public BaseController(UserManager <OrgUser> userManager, SignInManager <OrgUser> signInManager, IConfiguration config, IHostingEnvironment hostingEnvironment, IResources resource, IApppSettings appSettings, IDataProvider dataProvider, IDetection detection)
 {
     _dataProvider       = dataProvider;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _configuration      = config;
     _hostingEnvironment = hostingEnvironment;
     _resources          = resource;
     _appSettings        = appSettings;
     _detection          = detection;
 }
 public SubscriptorsController(ApplicationDbContext context,
                               IDetection detection,
                               IPushNotificationService notificationService,
                               ITagService tagService,
                               IDeviceService deviceService)
 {
     _context             = context;
     _notificationService = notificationService;
     _detection           = detection;
     _deviceService       = deviceService;
     _tagService          = tagService;
 }
예제 #8
0
 public HomeController(
     ILogger <HomeController> logger,
     IUnitOfWork unitofwork,
     IMapper map,
     IDetection detection,
     IService service)
 {
     _logger     = logger;
     _unitofwork = unitofwork;
     _map        = map;
     _detection  = detection;
     _service    = service;
 }
예제 #9
0
 public MessagesController(IHostingEnvironment hostingEnvironment, UserManager <ApplicationUser> userManager,
                           SignInManager <ApplicationUser> signInManager,
                           IEmailSender emailSender,
                           ILogger <MessagesController> logger, ApplicationDbContext context, IDetection detection)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _emailSender        = emailSender;
     _logger             = logger;
     _detection          = detection;
 }
 public LoginModel(
     IDetection detection,
     IIdentityServerInteractionService interaction,
     SignInManager <ApplicationUser> signInManager,
     IMultiFactorUserStore <ApplicationUser, ApplicationFactor> multiFactorUserStore,
     ILogger <LoginModel> logger)
 {
     Detection             = detection;
     _multiFactorUserStore = multiFactorUserStore;
     _interaction          = interaction;
     _signInManager        = signInManager;
     _logger = logger;
 }
예제 #11
0
 public BenchmarksController(
     [NotNull] SqlServerBenchmarkRepository benchmarkRepository,
     [NotNull] UserManager <ApplicationUser> userManager,
     [NotNull] IOptions <ResultsConfig> resultsConfig,
     [NotNull] ILoggerFactory loggerFactory,
     [NotNull] SqlServerResultsRepository publishResultRepository,
     IDetection detection)
 {
     this.m_benchmarkRepository = benchmarkRepository;
     this.m_userManager         = userManager;
     this.m_resultsConfig       = resultsConfig;
     this.m_logger = loggerFactory.CreateLogger <BenchmarksController>();
     this.m_publishResultRepository = publishResultRepository;
     this.detection = detection;
 }
 public async Task InvokeAsync(HttpContext context,
                               IDetection detection)
 {
     if (!context.Request.Path.StartsWithSegments("/api"))
     {
         if (!CompatibleBrowsers.Contains(detection.Browser.Type.ToString()))
         {
             context.Response.Redirect("/InCompatibleBrowser.html");
         }
         else
         {
             await this._next.Invoke(context);
         }
     }
     else
     {
         await this._next.Invoke(context);
     }
 }
예제 #13
0
 public QualificationController(IDetection d, IWebHostEnvironment env)
 {
     detection = d;
     _env      = env;
 }
예제 #14
0
 public SpecializationDetection(IDetection detection, CoreSpecialization specialization)
 {
     Detection      = detection;
     Specialization = specialization;
 }
예제 #15
0
 public UserController(IDetection detection, IHttpContextAccessor contextAccessor)
 {
     this.detection       = detection;
     this.contextAccessor = contextAccessor;
 }
 public BrowserInformationController(IBrowserInformationFacade facade, IDetection detection)
 {
     this._facade    = facade;
     this._detection = detection;
 }
예제 #17
0
 public HomeController(IDetection detection)
 {
     _detection = detection;
 }
예제 #18
0
 public GrantController(IGrantService serv, IDetection detection)
 {
     _device  = detection.Device;
     _service = serv;
 }
예제 #19
0
 public DbBlog(DbContextOptions <DbBlog> options, IHttpContextAccessor context, IDetection detection) : base(options)
 {
     _context   = context;
     _detection = detection;
 }
예제 #20
0
 public HomeController(UserManager <OrgUser> userManager, SignInManager <OrgUser> signInManager, IConfiguration config, HostingEnvironment hostingEnvironment, IResources resources, IApppSettings appSettings, IDataProvider dataProvider, IDetection detection, IAppMailer appMailer) :
     base(userManager, signInManager, config, hostingEnvironment, resources, appSettings, dataProvider, detection, appMailer)
 {
 }
예제 #21
0
 public SocialController(IDetection d)
 {
     detection = d;
 }
예제 #22
0
 public HttpDeviceProfiler(ICryptoService crypto, IDetection detection)
 {
     this.crypto    = crypto;
     this.detection = detection;
 }
예제 #23
0
 public SkillDetection(IDetection detection, int skillId, SkillSlot slot)
 {
     Detection = detection;
     SkillId   = skillId;
     Slot      = slot;
 }
예제 #24
0
 public DetectionController(IDetection detection)
 {
     this.detection = detection;
 }
예제 #25
0
 public HomeController(IDetection d)
 {
     detection = d;
 }