public AccountController(WatchContext context, UserManager <WatchUser> userManager,
                          SignInManager <WatchUser> signInManager, RoleManager <IdentityRole> roleManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
     _roleManager   = roleManager;
 }
Exemplo n.º 2
0
        public async void AddWatch(RegisterContext registerContext)
        {
            var token = registerContext.Token;

            if (WatchContextList.TryGetValue(token, out var context))
            {
                context.TaskCompletionSource.TrySetResult();
            }

            var delaySecond = registerContext.DelaySecond;

            var delayTask            = Task.Delay(TimeSpan.FromSeconds(delaySecond));
            var taskCompletionSource = new TaskCompletionSource();

            WatchContextList[token] = new WatchContext()
            {
                TaskCompletionSource = taskCompletionSource
            };

            await Task.WhenAny(delayTask, taskCompletionSource.Task);

            Check(token);
        }
Exemplo n.º 3
0
 public PromoDAO(ILogger <string> logger, WatchContext context) : base(logger, context)
 {
 }
 public ProductsController(WatchContext context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
 public GloballyConnectedController(WatchContext context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
 public SomeFeatureController(WatchContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public HomeController(WatchContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public WatchRepository(WatchContext context) : base(context)
 {
 }
Exemplo n.º 9
0
 public UserRepository(WatchContext context) : base(context)
 {
 }
Exemplo n.º 10
0
 public WatchBookmarkRepository(WatchContext context) : base(context)
 {
 }
 public FaqController(WatchContext context)
 {
     _context = context;
 }
Exemplo n.º 12
0
 public ImageRepository(WatchContext context) : base(context)
 {
 }
 public AjaxController(WatchContext context)
 {
     _context = context;
 }
 public BrandNewAppController(WatchContext context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
Exemplo n.º 15
0
 public SuggestPriceRepository(WatchContext context) : base(context)
 {
 }
Exemplo n.º 16
0
 public OrderDAO(ILogger <string> logger, WatchContext context) : base(logger, context)
 {
 }
Exemplo n.º 17
0
 public SmartFutureController(WatchContext context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
Exemplo n.º 18
0
 public BrandRepository(WatchContext context) : base(context)
 {
 }
Exemplo n.º 19
0
 public AbstractDAO(ILogger <string> logger, WatchContext context)
 {
     _logger  = logger;
     _context = context;
 }
 public CartController(WatchContext context)
 {
     _context = context;
 }
 public BrandsController(WatchContext context)
 {
     _context = context;
 }
Exemplo n.º 22
0
 public RoleRepository(WatchContext context) : base(context)
 {
 }
Exemplo n.º 23
0
 public RequestRepository(WatchContext context) : base(context)
 {
 }
 public FooterController(WatchContext context)
 {
     _context = context;
 }
 public FooterViewComponent(WatchContext context)
 {
     _context = context;
 }