Example #1
0
 public TracksController(ITrackService shoppingService, IAlbumService albumService, IUserService userService, IUserCookieService userCookieService)
 {
     this.trackService      = shoppingService;
     this.albumService      = albumService;
     this.UserService       = userService;
     this.UserCookieService = userCookieService;
 }
Example #2
0
 protected Controller()
 {
     this.Response      = new HttpResponse();
     this.hashService   = new HashService();
     this.cookieService = new UserCookieService();
     this.Model         = new ViewModel();
 }
Example #3
0
 public BaseController()
 {
     this.Db            = new IRunesContext();
     this.HashService   = new HashService();
     this.CookieService = new UserCookieService();
     this.ViewBag       = new Dictionary <string, string>();
 }
Example #4
0
        public Controller()
        {
            this.Response = new HttpResponse();

            this.UserCookieService = new UserCookieService();

            this.Model = new ViewModel();
        }
Example #5
0
        public static MvcUserInfo GetUserData(IHttpCookieCollection cookieCollection,
                                              IUserCookieService userCookieService)
        {
            if (!cookieCollection.ContainsCookie(".auth"))
            {
                return(new MvcUserInfo());
            }

            var cookie        = cookieCollection.GetCookie(".auth");
            var cookieContent = cookie.Value;

            try
            {
                var userName = userCookieService.GetUserData(cookieContent);
                return(userName);
            }
            catch (Exception)
            {
                return(new MvcUserInfo());
            }
        }
Example #6
0
 //GET
 public UsersController(IUserService userService, IUserCookieService userCookieService) : base(userCookieService)
 {
     this.UserService = userService;
 }
Example #7
0
 protected BaseController(IUserCookieService userCookieService)
 {
     this.UserCookieService = userCookieService;
 }
Example #8
0
 public UserController(IUserService userService, IHashService hashService, IUserCookieService userCookieService)
 {
     this.userService       = userService;
     this.hashService       = hashService;
     this.userCookieService = userCookieService;
 }
 public HomeController(IUserCookieService userCookieService) : base(userCookieService)
 {
 }
Example #10
0
 public AlbumsController(IAlbumService albumService, IUserCookieService cookieService) : base(cookieService)
 {
     this.AlbumService = albumService;
 }
Example #11
0
        public static MvcUserInfo GetUserData(IHttpCookieCollection cookieCollection, IUserCookieService cookieService, IHttpRequest request)
        {
            if (!request.Session.ContainsParameter(".auth_cake"))
            {
                return(new MvcUserInfo());
            }

            var sessionParameter = (string)request.Session.GetParameter(".auth_cake");

            try
            {
                var userName = cookieService.GetUserData(sessionParameter);
                return(userName);
            }
            catch (Exception)
            {
                return(new MvcUserInfo());
            }
        }
 public TasksController(IUserCookieService userCookieService, ITaskService taskService, IReportService reportService, IUserService userService) : base(userCookieService)
 {
     this.TaskService   = taskService;
     this.ReportService = reportService;
     this.UserService   = userService;
 }
Example #13
0
 public UserController(IUserService userService, IPasswordService passwordService, IUserCookieService userCookieService)
 {
     this.UserService       = userService;
     this.PasswordService   = passwordService;
     this.UserCookieService = userCookieService;
 }
Example #14
0
 public BaseController(IUserSessionService userSessionService, IUserCookieService userCookieService)
 {
     this.userSessionService = userSessionService;
     this.userCookieService  = userCookieService;
 }
Example #15
0
 public UserService()
 {
     this.HashService       = new HashService();
     this.Context           = new IRunesDbContext();
     this.UserCookieService = new UserCookieService();
 }
Example #16
0
 public UserService(IHashService hashService, IUserCookieService userCookieService)
 {
     this.HashService       = hashService;
     this.UserCookieService = userCookieService;
     this.Context           = new IRunesDbContext();
 }
 public TracksController(ITrackService trackService, IUserCookieService userCookieService) : base(userCookieService)
 {
     this.TrackService = trackService;
 }
 public BaseController()
 {
     this.db            = new CakesDbContext();
     this.cookieService = new UserCookieService();
 }
 public BaseController()
 {
     this.cookieService = new UserCookieService();
 }
Example #20
0
 public HomeController(IUserCookieService userCookieService)
 {
     this.userCookieService = userCookieService;
 }
 public HomeController(IUserSessionService userSessionService, IUserCookieService userCookieService)
     : base(userSessionService, userCookieService)
 {
 }
Example #22
0
 protected Controller()
 {
     this.userCookieService = new UserCookieServer();
     this.ViewBag           = new Dictionary <string, string>();
 }
Example #23
0
 public AccountController(IUserSessionService userSessionService, IUserCookieService userCookieService)
     : base(userSessionService, userCookieService)
 {
 }
 protected BaseController(IUserCookieService userCookieService)
     : base()
 {
     this.UserCookieService = userCookieService;
     this.Db = new IRunesDbContext();
 }
 public HomeController(IUserCookieService userCookieService, ITaskService taskService) : base(userCookieService)
 {
     this.TaskService = taskService;
 }