Пример #1
0
 public NotificationHub(ApplicationDbContext context,
                        UserManager <ApplicationUser> userManager,
                        IPlatformResolver platformResolver)
 {
     _context     = context;
     _userManager = userManager;
     _useragent   = platformResolver.UserAgent;
 }
Пример #2
0
 public NotificationHub(
     UserManager <IUser> userManager,
     IPlatformResolver platformResolver,
     ILogger <NotificationHub> logger)
 {
     _userManager = userManager;
     _useragent   = platformResolver.UserAgent;
     _logger      = logger;
 }
Пример #3
0
 public Detection(IUserAgentService service,
                  IDeviceResolver deviceResolver,
                  IBrowserResolver browserResolver,
                  IPlatformResolver platformResolver,
                  IEngineResolver engineResolver,
                  ICrawlerResolver crawlerResolver)
 {
     this._service          = service;
     this._deviceResolver   = deviceResolver;
     this._browserResolver  = browserResolver;
     this._platformResolver = platformResolver;
     this._engineResolver   = engineResolver;
     this._crawlerResolver  = crawlerResolver;
 }
Пример #4
0
 public HomeController(
     IDetectionService detectionService,
     IDeviceResolver deviceResolver,
     IBrowserResolver browserResolver,
     IEngineResolver engineResolver,
     IPlatformResolver platformResolver)
 {
     client = new ClientInfo
     {
         UserAgent = detectionService.UserAgent,
         Device    = deviceResolver.Device,
         Browser   = browserResolver.Browser,
         Engine    = engineResolver.Engine,
         Platform  = platformResolver.Platform
     };
 }
Пример #5
0
 public HomeController(IPlatformResolver platform)
 {
     _platform = platform;
 }