public DispatchAllocationController(IDispatchAllocationService dispatchAllocationService,
                                     IUserProfileService userProfileService,
                                     IOtherDispatchAllocationService otherDispatchAllocationService,
                                     IShippingInstructionService shippingInstructionService,
                                     IProjectCodeService projectCodeService,
                                     ITransporterService transporterService,
                                     ICommonService commonService,
                                     IAdminUnitService adminUnitService,
                                     IFDPService fdpService,
                                     IHubService hubService,
                                      ICommodityTypeService commodityTypeService)
     : base(userProfileService)
 {
     this._dispatchAllocationService = dispatchAllocationService;
     this._userProfileService = userProfileService;
     this._otherDispatchAllocationService = otherDispatchAllocationService;
     this._projectCodeService = projectCodeService;
     this._shippingInstructionService = shippingInstructionService;
     this._transporterService = transporterService;
     this._adminUnitService = adminUnitService;
     this._fdpService = fdpService;
     this._commonService = commonService;
     this._hubService = hubService;
     this._commodityTypeService = commodityTypeService;
 }
 public LossesAndAdjustmentsController(IUserProfileService userProfileService,
                                         ICommodityService commodityService,
                                         IStoreService storeService,
                                         IProgramService programService,
                                         IHubService hubService,
                                         IUnitService unitService,
                                         IAdjustmentReasonService adjustmentReasonService,
                                         IAdjustmentService adjustmentService,
                                         ITransactionService transactionService,
                                         IProjectCodeService projectCodeService,
                                         IShippingInstructionService shippingInstructionService)
     : base(userProfileService)
 {
     _userProfileService = userProfileService;
     _commodityService = commodityService;
     _storeService = storeService;
     _programService = programService;
     _hubService = hubService;
     _unitService = unitService;
     _adjustmentReasonService = adjustmentReasonService;
     _adjustmentService = adjustmentService;
     _TransactionService = transactionService;
     _projectCodeService = projectCodeService;
     _shippingInstructionService = shippingInstructionService;
 }
 public FriendController(IUserService userService, IFriendService friendService, 
     IUserProfileService profileService)
 {
     _userService = userService;
     _friendService = friendService;
     _profileService = profileService;
 }
示例#4
0
 public DispatchController(IDispatchAllocationService dispatchAllocationService, IDispatchService dispatchService,
     IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService,
     IDispatchDetailService dispatchDetailService, IUnitService unitService, ICommodityTypeService commodityTypeService,
     IProgramService programService, ITransporterService transporterService, IPeriodService periodService,
     ICommodityService commodityService, ITransactionService transactionService, IStoreService storeService,
     IAdminUnitService adminUnitService, IHubService hubService, IFDPService fdpService,
     IProjectCodeService projectCodeService, IShippingInstructionService shippingInstructionService,
     ISMSGatewayService smsGatewayService, IContactService contactService, ISMSService smsService, IReliefRequisitionService reliefRequisitionService)
     : base(userProfileService)
 {
     _dispatchAllocationService = dispatchAllocationService;
     _dispatchService = dispatchService;
     _userProfileService = userProfileService;
     _otherDispatchAllocationService = otherDispatchAllocationService;
     _dispatchDetailService = dispatchDetailService;
     _unitService = unitService;
     _commodityTypeService = commodityTypeService;
     _programService = programService;
     _transporterService = transporterService;
     _periodService = periodService;
     _commodityService = commodityService;
     _transactionService = transactionService;
     _storeService = storeService;
     _adminUnitService = adminUnitService;
     _hubService = hubService;
     _fdpService = fdpService;
     _projectCodeService = projectCodeService;
     _shippingInstructionService = shippingInstructionService;
     _smsGatewayService = smsGatewayService;
     _contactService = contactService;
     _smsService = smsService;
     _reliefRequisitionService = reliefRequisitionService;
 }
示例#5
0
 public AccountsController(IAccountRepository accountRepository, INotificationService notificationService, IAccountsSettingsService accountsSettingsService, IUserProfileService userProfileService)
 {
     this.accountRepository = accountRepository;
       this.notificationService = notificationService;
       this.accountsSettingsService = accountsSettingsService;
       this.userProfileService = userProfileService;
 }
        public void SetUp()
        {
            userRepository = new Mock<IUserRepository>();
            userProfileRepository = new Mock<IUserProfileRepository>();
            followRequestRepository = new Mock<IFollowRequestRepository>();
            followUserRepository = new Mock<IFollowUserRepository>();
            securityTokenRepository = new Mock<ISecurityTokenRepository>();


            unitOfWork = new Mock<IUnitOfWork>();

            userService = new UserService(userRepository.Object, unitOfWork.Object, userProfileRepository.Object);
            userProfileService = new UserProfileService(userProfileRepository.Object, unitOfWork.Object);
            followRequestService = new FollowRequestService(followRequestRepository.Object, unitOfWork.Object);
            followUserService = new FollowUserService(followUserRepository.Object, unitOfWork.Object);
            securityTokenService = new SecurityTokenService(securityTokenRepository.Object, unitOfWork.Object);

            controllerContext = new Mock<ControllerContext>();
            contextBase = new Mock<HttpContextBase>();
            httpRequest = new Mock<HttpRequestBase>();
            httpResponse = new Mock<HttpResponseBase>();
            genericPrincipal = new Mock<GenericPrincipal>();
            httpSession = new Mock<HttpSessionStateBase>();
            authentication = new Mock<IFormsAuthentication>();


            identity = new Mock<IIdentity>();
            principal = new Mock<IPrincipal>();
            tempData = new Mock<TempDataDictionary>();
            file = new Mock<HttpPostedFileBase>();
            stream = new Mock<Stream>();
            accountController = new Mock<AccountController>();

        }
示例#7
0
 public EventsController(IUserProfileService profileService, IEventService eventService, IFacebookService facebookService, IMediaService mediaService)
 {
     _profileService = profileService;
     _eventService = eventService;
     _facebookService = facebookService;
     _mediaService = mediaService;
 }
示例#8
0
 public ReportsController(IDispatchService dispatchService,
      IReceiveService receiveService,
      IUserProfileService userProfileService,
      IHubService hubService,
      ITransactionService transactionService,
      ICommodityService commodityService,
      ICommodityTypeService commodityTypeService,
      IProgramService programService,
      IAdminUnitService adminUnitService,
      IDispatchAllocationService dispatchAllocationService,
      ICommoditySourceService commoditySourceService
      
      )
 {
     this._dispatchService = dispatchService;
      this._receiveService = receiveService;
      this._userProfileService = userProfileService;
      this._hubService = hubService;
      this._transactionService = transactionService;
      _commodityService = commodityService;
      _commodityTypeService = commodityTypeService;
      _programService = programService;
      _adminUnitService = adminUnitService;
      _dispatchAllocationService = dispatchAllocationService;
      _commoditySourceService = commoditySourceService;
 }
 public AdminUnitController(IAdminUnitService adminUnitService, IUserProfileService userProfileService,
     IDispatchAllocationService dispatchAllocationService)
 {
     _adminUnitService = adminUnitService;
     _userProfileService = userProfileService;
     _dispatchAllocationService = dispatchAllocationService;
 }
示例#10
0
 public ReceiveController(IReceiveService receiveService,IGiftCertificateService giftCertificateService,
                          IReceiptAllocationService receiptAllocationService,IUserProfileService userProfileService,
                          ICommodityTypeService commodityTypeService ,IReceiveDetailService receiveDetailService,
                          ICommodityService commodityService,IStoreService storeService,ITransactionService transactionService,
                          IUnitService unitService,IShippingInstructionService shippingInstructionService,IHubService hubService,
                          ICommodityGradeService commodityGradeService,IProgramService programService,ITransporterService transporterService,
                          ICommoditySourceService commoditySourceService, IDonorService donorService)
     : base(userProfileService)
 {
     _receiveService = receiveService;
     _giftCertificateService = giftCertificateService;
     _receiptAllocationService = receiptAllocationService;
     _userProfileService = userProfileService;
     _commodityTypeService = commodityTypeService;
     _receiveDetailService = receiveDetailService;
     _commodityService = commodityService;
     _storeService = storeService;
     _transactionService = transactionService;
     _unitService = unitService;
     _shippingInstructionService = shippingInstructionService;
     _hubService = hubService;
     _commodityGradeService = commodityGradeService;
     _programService = programService;
     _transporterService = transporterService;
     _commoditySourceService=commoditySourceService;
     _donorService = donorService;
 }
示例#11
0
 //
 // GET: /CurrentWarehouse/
 public CurrentHubController(IUserProfileService userProfileService,
      IUserHubService userHubService)
     : base(userProfileService)
 {
     _userProfileService = userProfileService;
      _userHubService = userHubService;
 }
 public BaseMvcController()
 {
     repository = new MovieRepository();
     userRepository = new UserRepository();
     cookieService = new CookieService();
     userProfileService = new UserProfileService();
 }
示例#13
0
 public RequestController(IRegionalRequestService reliefRequistionService,
                         IFDPService fdpService,
                         IRegionalRequestDetailService reliefRequisitionDetailService,
                         ICommonService commonService,
                         IHRDService hrdService,
                         IApplicationSettingService ApplicationSettingService,
                         IUserAccountService userAccountService,
                         ILog log,
                         IHRDDetailService hrdDetailService,
                         IRegionalPSNPPlanDetailService regionalPSNPPlanDetailService,
                         IRegionalPSNPPlanService RegionalPSNPPlanService,
     IAdminUnitService adminUnitService,
     IPlanService planService,
     IIDPSReasonTypeServices idpsReasonTypeServices, ITransactionService transactionService, INotificationService notificationService, IUserProfileService userProfileService)
 {
     _regionalRequestService = reliefRequistionService;
     _fdpService = fdpService;
     _regionalRequestDetailService = reliefRequisitionDetailService;
     _commonService = commonService;
     _hrdService = hrdService;
     _applicationSettingService = ApplicationSettingService;
     _userAccountService = userAccountService;
     _log = log;
     _HRDDetailService = hrdDetailService;
     _RegionalPSNPPlanDetailService = regionalPSNPPlanDetailService;
     _RegionalPSNPPlanService = RegionalPSNPPlanService;
     _adminUnitService = adminUnitService;
     _planService = planService;
     _idpsReasonTypeServices = idpsReasonTypeServices;
     _transactionService = transactionService;
     _notificationService = notificationService;
     _userProfileService = userProfileService;
 }
示例#14
0
 public MeController(IUserService userService, IUserProfileService userProfileService, IHugService hugService, IUserAccessTokenProvider accessTokenProvider)
 {
     _userService = userService;
     _userProfileService = userProfileService;
     _hugService = hugService;
     _accessTokenProvider = accessTokenProvider;
 }
示例#15
0
 public AdminController(IUserProfileService userProfileService, IUserRoleService userRoleService, IRoleService roleService, IUserHubService userHubService, IHubService hubService)
 {
     _userProfileService = userProfileService;
     _userRoleService = userRoleService;
     _roleService = roleService;
     _userHubService = userHubService;
     _hubService = hubService;
 }
示例#16
0
 public StockStatusController(IUserProfileService userProfileService,
      ICommodityService commodityService, IHubService hubService)
     : base(userProfileService)
 {
     _userProfileService = userProfileService;
      _commodityService = commodityService;
      _hubService = hubService;
 }
 public WorkFlowLevelController(IWorkFlowSetupService workFlowSetupService,
     IUserProfileService userProfileService, IUtilityService utilityService,
     IWorkflowService workFlowService) : base(userProfileService,utilityService)
 {
     _workFlowSetupService = workFlowSetupService;
     _workFlowService = workFlowService;
 
 }
示例#18
0
 public FDPController(IFDPService FDPServiceParam, 
     IAdminUnitService adminUnitService, 
     IUserProfileService userProfileService)
     : base(userProfileService)
 {
     this._FDPService = FDPServiceParam;
     _adminUnitService = adminUnitService;
 }
示例#19
0
 //
 // GET: /Commodity/
 public CommodityController(ICommodityTypeService commodityTypeService,
     ICommodityService commodityService,
     IUserProfileService userProfileService)
     : base(userProfileService)
 {
     _commodityTypeService = commodityTypeService;
     _commodityService = commodityService;
 }
示例#20
0
 public UserWarehouseController(IUserHubService userHubService, 
      IHubService hubService, 
      IUserProfileService userProfileService)
     : base(userProfileService)
 {
     this._userHubService = userHubService;
      this._hubService = hubService;
      this._userProfileService = userProfileService;
 }
 public RibbitControllerBase()
 {
     DataContext = new Context();
     Users = new UserService(DataContext);
     Ribbits = new RibbitService(DataContext);
     Security = new SecurityService(Users);
     CurrentUser = Security.GetCurrentUser();
     Profiles = new UserProfileService(DataContext);
 }
示例#22
0
 public TransactionController(ITransactionService transactionService,
      ILedgerService ledgerService, ICommodityService commodityService,
      IUserProfileService userProfileService)
     : base(userProfileService)
 {
     this._transactionService = transactionService;
      this._ledgerService = ledgerService;
      this._commodityService = commodityService;
 }
 public StackEventController(IStackEventService stackeventService, 
                             IUserProfileService userProfileService,
                             IHubService hubService,
                             IStackEventTypeService stackEventTypeService)
 {
     _stackEventService = stackeventService;
     _userProfileService = userProfileService;
     _hubService = hubService;
     _StackEventTypeService = stackEventTypeService;
 }
示例#24
0
 public UserController(IUserProfileService userProfileService, IUserFancyAppService userFancyAppService
         , IAppService appService, IRoleService roleService, IRoleAppService roleAppService
     )
 {
     this._userProfileService = userProfileService;
     this._userFancyAppService = userFancyAppService;
     this._appService = appService;
     this._roleService = roleService;
     this._roleAppService = roleAppService;
 }
示例#25
0
 public BinCardController(ICommodityService commodityService, 
      IProjectCodeService projectCodeService,
      IStoreService storeService, 
      IUserProfileService userProfileService)
     : base(userProfileService)
 {
     _commodityService = commodityService;
      _projectCodeService = projectCodeService;
      _storeService = storeService;
 }
示例#26
0
 public AccountController(IUserService userService, IUserProfileService userProfileService, IGoalService goalService, IUpdateService updateService, ICommentService commentService, IFollowRequestService followRequestService, IFollowUserService followUserService, ISecurityTokenService securityTokenService, UserManager<ApplicationUser> userManager)
 {
     this.userService = userService;
     this.userProfileService = userProfileService;
     this.goalService = goalService;
     this.updateService = updateService;
     this.commentService = commentService;
     this.followRequestService = followRequestService;
     this.followUserService = followUserService;
     this.securityTokenService = securityTokenService;
     this.UserManager = userManager;
 }
示例#27
0
 public StaffingController(
     IUsersService usersService,
     IDepartmentsService departmentsService,
     IUserStateService userStateService,
     IUserProfileService userProfileService,
     IAuthorizationService authorizationService)
 {
     _usersService         = usersService;
     _departmentsService   = departmentsService;
     _userStateService     = userStateService;
     _userProfileService   = userProfileService;
     _authorizationService = authorizationService;
 }
示例#28
0
 public AccountController(IPrivateMessageService privateMessageService, IUserService userService, IUserProfileService userProfileService, IGoalService goalService, IUpdateService updateService, ICommentService commentService, IFollowRequestService followRequestService, IFollowUserService followUserService, ISecurityTokenService securityTokenService, UserManager <ApplicationUser> userManager)
 {
     this.userService           = userService;
     this.userProfileService    = userProfileService;
     this.goalService           = goalService;
     this.updateService         = updateService;
     this.commentService        = commentService;
     this.followRequestService  = followRequestService;
     this.followUserService     = followUserService;
     this.securityTokenService  = securityTokenService;
     this.privateMessageService = privateMessageService;
     this.UserManager           = userManager;
 }
示例#29
0
 public RegisterModel(
     IUserProfileService userProfileService,
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender)
 {
     _userManager        = userManager;
     _signInManager      = signInManager;
     _logger             = logger;
     _emailSender        = emailSender;
     _userProfileService = userProfileService;
 }
示例#30
0
 public ReceiveDetailController(IReceiveDetailService receiveDetailService,
                                ICommodityService commodityService,
                                ICommodityGradeService commodityGradeService,
                                IReceiveService receiveService, IUnitService unitService,
                                IUserProfileService userProfileService)
     : base(userProfileService)
 {
     _receiveDetailService  = receiveDetailService;
     _commodityService      = commodityService;
     _commodityGradeService = commodityGradeService;
     _receiveService        = receiveService;
     _unitService           = unitService;
 }
示例#31
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserProfileController"/> class.
 /// </summary>
 /// <param name="logger">The service Logger.</param>
 /// <param name="userProfileService">The injected user profile service.</param>
 /// <param name="httpContextAccessor">The injected http context accessor provider.</param>
 /// <param name="userEmailService">The injected user email service.</param>
 /// <param name="userSMSService">The injected user sms service.</param>
 public UserProfileController(
     ILogger <UserProfileController> logger,
     IUserProfileService userProfileService,
     IHttpContextAccessor httpContextAccessor,
     IUserEmailService userEmailService,
     IUserSMSService userSMSService)
 {
     this.logger              = logger;
     this.userProfileService  = userProfileService;
     this.httpContextAccessor = httpContextAccessor;
     this.userEmailService    = userEmailService;
     this.userSMSService      = userSMSService;
 }
 public LoginController(
     ICryptoServiceFactory cryptoServiceFactory,
     ILoginService loginService,
     IUserProfileService userProfileService,
     IFacebookProfileProxy facebookProfileProxy,
     ILogger logger)
     : base(logger)
 {
     cryptoService = cryptoServiceFactory.Create();
     this.loginService = loginService;
     this.userProfileService = userProfileService;
     this.facebookProfileProxy = facebookProfileProxy;
 }
示例#33
0
 public PostModel(
     ICategoryPostsService postsService,
     IAdminCommentsService commentsService,
     IAdminRepliesService repliesService,
     IUserProfileService userService,
     UserManager <User> userManager)
 {
     this.postsService    = postsService;
     this.commentsService = commentsService;
     this.repliesService  = repliesService;
     this.userService     = userService;
     this.userManager     = userManager;
 }
示例#34
0
 public UserProfileController(
     IHostingEnvironment appEnvironment,
     IUserService userService,
     ICategoryService categoryService,
     IUserProfileService userProfileService,
     IMapper mapper)
 {
     _appEnvironment     = appEnvironment;
     _userService        = userService;
     _categoryService    = categoryService;
     _userProfileService = userProfileService;
     _mapper             = mapper;
 }
示例#35
0
 public ReceiveDetailController(IReceiveDetailService receiveDetailService,
                                ICommodityService commodityService,
                                ICommodityGradeService commodityGradeService,
                                IReceiveService receiveService, IUnitService unitService, 
     IUserProfileService userProfileService)
     : base(userProfileService)
 {
     _receiveDetailService = receiveDetailService;
     _commodityService = commodityService;
     _commodityGradeService = commodityGradeService;
     _receiveService = receiveService;
     _unitService = unitService;
 }
示例#36
0
        public void PopulateQueue()
        {
            if (!_isLocked)
            {
                _isLocked = true;

                Task t1 = new Task(async() =>
                {
                    try
                    {
                        if (Config.SystemBehaviorConfig.IsAzure)
                        {
                            _queue.Enqueue(new CallQueueItem());
                        }
                        else
                        {
                            _callsService       = Bootstrapper.GetKernel().Resolve <ICallsService>();
                            _queueService       = Bootstrapper.GetKernel().Resolve <IQueueService>();
                            _userProfileService = Bootstrapper.GetKernel().Resolve <IUserProfileService>();

                            var items = await _queueService.DequeueAsync(QueueTypes.CallBroadcast);

                            foreach (var i in items)
                            {
                                var cqi       = new CallQueueItem();
                                cqi.QueueItem = i;
                                cqi.Call      = await _callsService.GetCallByIdAsync(int.Parse(i.SourceId));
                                cqi.Profiles  = await _userProfileService.GetSelectedUserProfilesAsync(cqi.Call.Dispatches.Select(x => x.UserId).ToList());

                                _queue.Enqueue(cqi);
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        Logging.LogException(ex);
                    }
                    finally
                    {
                        _isLocked = false;
                        _cleared  = false;

                        _callsService       = null;
                        _queueService       = null;
                        _userProfileService = null;
                    }
                });

                t1.Start();
            }
        }
示例#37
0
        public ClaimsPrincipalFactory(UserManager <TUser> userManager, RoleManager <TRole> roleManager, IOptions <IdentityOptions> optionsAccessor,
                                      IUsersService usersService, IDepartmentsService departmentsService, IDepartmentGroupsService departmentGroupsService, IUserProfileService userProfileService,
                                      IPermissionsService permissionsService, IPersonnelRolesService personnelRolesService
                                      ) : base(userManager, roleManager, optionsAccessor)
        {
            _usersService            = usersService;
            _departmentsService      = departmentsService;
            _departmentGroupsService = departmentGroupsService;
            _userProfileService      = userProfileService;
            _permissionsService      = permissionsService;
            _personnelRolesService   = personnelRolesService;

            options = optionsAccessor.Value;
        }
 public NotificationController(
     ILogger <NotificationController> logger,
     SignInManager <UserProfileModel> signInManager,
     UserManager <UserProfileModel> userManager,
     IUserProfileService localProfiles,
     IPublicProfileService publicProfiles,
     INotificationService notifications,
     IAuthService auth,
     ISettingsService settings) :
     base(signInManager, userManager, localProfiles, publicProfiles, auth, settings)
 {
     _logger        = logger;
     _notifications = notifications;
 }
示例#39
0
 /// <summary>
 /// Operations to perform against the department links system. Department Links allow departments to
 /// share data to other departments, for example calls or resource orders.
 /// </summary>
 public LinksController(IDepartmentsService departmentsService, IDepartmentLinksService departmentLinksService, ILimitsService limitsService,
                        ICallsService callsService, IUserProfileService userProfileService, IGeoLocationProvider geoLocationProvider, IUnitsService unitsService,
                        IActionLogsService actionLogsService, IUserStateService userStateService)
 {
     _departmentsService     = departmentsService;
     _departmentLinksService = departmentLinksService;
     _limitsService          = limitsService;
     _callsService           = callsService;
     _userProfileService     = userProfileService;
     _geoLocationProvider    = geoLocationProvider;
     _unitsService           = unitsService;
     _actionLogsService      = actionLogsService;
     _userStateService       = userStateService;
 }
 public ShippingLoadController(IShippingService shippingService,
                               ILoadService loadService,
                               ILocationService locationService,
                               IUserContext userContext,
                               IUserProfileService userProfileService,
                               IMapper mapper)
 {
     _shippingService    = shippingService;
     _loadService        = loadService;
     _locationService    = locationService;
     _userContext        = userContext;
     _userProfileService = userProfileService;
     _mapper             = mapper;
 }
 public TagController(
     ILogger <TagController> logger,
     SignInManager <UserProfileModel> signInManager,
     UserManager <UserProfileModel> userManager,
     IUserProfileService localProfiles,
     IPublicProfileService publicProfiles,
     ITagService tags,
     IAuthService auth,
     ISettingsService settings) :
     base(signInManager, userManager, localProfiles, publicProfiles, auth, settings)
 {
     _logger = logger;
     _tags   = tags;
 }
示例#42
0
 public DashboardController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IUserProfileService userProfile,
     IDashboardService dashboard,
     ISrfRequestService service,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _dashboard   = dashboard;
     _userHelper  = userHelper;
     _userProfile = userProfile;
 }
示例#43
0
 public AccountController(IDepartmentsService departmentsService, IUsersService usersService, IActionLogsService actionLogsService,
                          IEmailService emailService, IUserProfileService userProfileService, IDeleteService deleteService, IAuthorizationService authorizationService,
                          ILimitsService limitsService, IPersonnelRolesService personnelRolesService)
 {
     _departmentsService    = departmentsService;
     _usersService          = usersService;
     _actionLogsService     = actionLogsService;
     _emailService          = emailService;
     _userProfileService    = userProfileService;
     _deleteService         = deleteService;
     _authorizationService  = authorizationService;
     _limitsService         = limitsService;
     _personnelRolesService = personnelRolesService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 //public AccountController()
 //    : this(new MembershipWrapper(), new FormsAuthenticationWrapper(), null)
 //{
 //}
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="membershipObject">The membership object.</param>
 /// <param name="formsAuthenticationObject">The forms authentication object.</param>
 /// <param name="urlHelper">The URL helper.</param>
 public AccountController(IMembershipWrapper membershipObject,
                             IFormsAuthenticationWrapper formsAuthenticationObject,
                             IUrlHelperWrapper urlHelper,
                             IUserProfileService userProfileService,
                             IForgetPasswordRequestService forgetPasswordRequestService,
                              ISettingService settingService)
 {
     this.membership = membershipObject;
     this.Url = urlHelper;
     this.authentication = formsAuthenticationObject;
     this._forgetPasswordRequestService = forgetPasswordRequestService;
     this._settingService = settingService;
     this._userProfileService = userProfileService;
 }
示例#45
0
 /// <summary>
 /// Main Controller
 /// </summary>
 /// <param name="userProfile">User Service</param>
 /// <param name="blobRepo">Blob Repository</param>
 public AzureBlobStorageController(IUserProfileService userProfile,
                                   IBlobStorageRepository blobRepo,
                                   IOptionsSnapshot <IoTHubOptions> iotOptions,
                                   IOptionsSnapshot <BlobOptions> blobOptions,
                                   IOptionsSnapshot <CosmosDbOptions> cosmostOptions,
                                   ILogger <AzureBlobStorageController> logger)
     : base(userProfile)
 {
     _blobRepo           = blobRepo;
     this.logger         = logger;
     this.cosmostOptions = cosmostOptions.Value;
     this.iotOptions     = iotOptions.Value;
     this.blobOptions    = blobOptions.Value;
 }
 public VehiclesController(
     VehicleRepository repository,
     UserManager <ApplicationUser> userManager,
     IVehicleViewModelService vehicleService,
     IUserProfileService userProfileService,
     ILogger <VehiclesController> logger
     )
 {
     _vehicleRepository  = repository;
     _userManager        = userManager;
     _vehicleService     = vehicleService;
     _userProfileService = userProfileService;
     _logger             = logger;
 }
示例#47
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        //public AccountController()
        //    : this(new MembershipWrapper(), new FormsAuthenticationWrapper(), null)
        //{

        //}

        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        /// <param name="membershipObject">The membership object.</param>
        /// <param name="formsAuthenticationObject">The forms authentication object.</param>
        /// <param name="urlHelper">The URL helper.</param>
        public AccountController(IMembershipWrapper membershipObject,
                                 IFormsAuthenticationWrapper formsAuthenticationObject,
                                 IUrlHelperWrapper urlHelper,
                                 IUserProfileService userProfileService,
                                 IForgetPasswordRequestService forgetPasswordRequestService,
                                 ISettingService settingService)
        {
            this.membership     = membershipObject;
            this.Url            = urlHelper;
            this.authentication = formsAuthenticationObject;
            this._forgetPasswordRequestService = forgetPasswordRequestService;
            this._settingService     = settingService;
            this._userProfileService = userProfileService;
        }
示例#48
0
 public LgaService(IUnitOfWorkAsync unitOfWork, ILgaRepository repository, IUserProfileService userProfileService,
     IUserProfileRepository userProfileRepository, IUtilityService utilityService,
     IApprovalService approvalService, IWorkflowService workflowService, IWorkFlowSetupService workFlowSetupService)
 {
     _unitOfWork = unitOfWork;
     _repository = repository;
     _userProfileService = userProfileService;
     _userProfileRepository = userProfileRepository;
     _utilityService = utilityService;
     _approvalService = approvalService;
     _workflowService = workflowService;
     _workFlowSetupService = workFlowSetupService;
     Mapper.CreateMap<UserProfile, UserProfileItem>();
 }
示例#49
0
 public DashboardController(ILogger <DashboardController> logger, IUserProfileService userProfileService,
                            IProjectService projectService, IEducationsService educationService, IUserServicesService userServices)
 {
     _logger             = logger;
     _profile            = new AllUserProfileViewModel();
     _singleUser         = new UserProfileViewModel();
     _userProfileService = userProfileService;
     _projectService     = projectService;
     _educationService   = educationService;
     _userService        = userServices;
     _serviceViewModel   = new ServiceViewModel();
     _projectViewModel   = new EditProjectViewModel();
     _educationViewModel = new EducationViewModel();
 }
示例#50
0
 public DepartmentRegistrationController(IDepartmentsService departmentsService, IUsersService usersService, IEmailService emailService,
                                         IInvitesService invitesService, IUserProfileService userProfileService, ISubscriptionsService subscriptionsService, IAffiliateService affiliateService,
                                         IEventAggregator eventAggregator, IEmailMarketingProvider emailMarketingProvider)
 {
     _departmentsService     = departmentsService;
     _usersService           = usersService;
     _emailService           = emailService;
     _invitesService         = invitesService;
     _userProfileService     = userProfileService;
     _subscriptionsService   = subscriptionsService;
     _affiliateService       = affiliateService;
     _eventAggregator        = eventAggregator;
     _emailMarketingProvider = emailMarketingProvider;
 }
 public LoginManager(IAuthenticationService authenticationService, ICryptographyService cryptographyService,
                     IEmailService emailService, ILoginAttemptsService loginAttemptsService, IUserAccountService userAccountService,
                     IUserAccountCodeService userAccountCodeService, IUserProfileService userProfileService, IMapperService mapperService,
                     IClaimsPrincipalService claimsPrincipalService)
 {
     _authenticationService  = authenticationService;
     _cryptographyService    = cryptographyService;
     _emailService           = emailService;
     _loginAttemptService    = loginAttemptsService;
     _userAccountService     = userAccountService;
     _userAccountCodeService = userAccountCodeService;
     _userProfileService     = userProfileService;
     _mapperService          = mapperService;
     _claimsPrincipalService = claimsPrincipalService;
 }
 public StaffingSchedulesController(
     IUsersService usersService,
     IDepartmentsService departmentsService,
     IUserStateService userStateService,
     IUserProfileService userProfileService,
     IAuthorizationService authorizationService,
     IScheduledTasksService scheduledTasksService)
 {
     _usersService          = usersService;
     _departmentsService    = departmentsService;
     _userStateService      = userStateService;
     _userProfileService    = userProfileService;
     _authorizationService  = authorizationService;
     _scheduledTasksService = scheduledTasksService;
 }
示例#53
0
 public CheckoutController(IUserProfileService userProfileService, IOrderService orderService,
                           IOfferService offerService, IAccountInfoService accountInfoService,
                           IOrderStatusService orderStatusService, IBillingService billingService,
                           ITransactionService transactionService, IIdentityMessageService identityMessageService, IWithdrawService withdrawService)
 {
     _orderStatusService     = orderStatusService;
     _userProfileService     = userProfileService;
     _orderService           = orderService;
     _offerService           = offerService;
     _accountInfoService     = accountInfoService;
     _billingService         = billingService;
     _transactionService     = transactionService;
     _identityMessageService = identityMessageService;
     _withdrawService        = withdrawService;
 }
 public AccountManager(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     RoleManager <ApplicationRole> roleManager,
     IAccountService accountService, ILogger <AccountManager> logger, IEmailService emailService, IUserProfileService userProfileService, IConfiguration configuration)
 {
     _accountService     = accountService;
     _logger             = logger;
     _emailService       = emailService;
     _userProfileService = userProfileService;
     _configuration      = configuration;
     _userManager        = userManager;
     _roleManager        = roleManager;
     _signInManager      = signInManager;
 }
示例#55
0
        public AccountApiController(IAuthentication formsService, IViewElementRoleService viewElementRoleService, ICompanyChartService CompanyChartService,
                                    IUserService userService, IServiceBase <CoreUserLog> userLogService, IUserProfileService userprofileService, IConstantService constantService, IDomainAuthenticationService domainAuthenticationService)
        {
            _membershipService = new AccountMembership();

            _formsService = formsService;

            _viewElementRoleService      = viewElementRoleService;
            _companyChartService         = CompanyChartService;
            _userService                 = userService;
            _userLogService              = userLogService;
            _userProfileService          = userprofileService;
            _constantService             = constantService;
            _domainAuthenticationService = domainAuthenticationService;
        }
示例#56
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProfileController" /> class.
        /// </summary>
        /// <param name="userInfo">The user information.</param>
        /// <param name="settings">The settings.</param>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="userProfileService">The country service.</param>
        /// <param name="cache">The cache.</param>
        public ProfileController(IUserInfo userInfo, IOptions <AppSettings> settings, IServiceProvider serviceProvider, IUserProfileService userProfileService, IMemoryCache cache)
            : base(userInfo)
        {
            _userProfileService = userProfileService;
            _cache        = cache;
            _cacheOptions = new MemoryCacheEntryOptions
            {
                Priority          = CacheItemPriority.NeverRemove,
                SlidingExpiration = TimeSpan.FromMinutes(30)
            };

            _blobSettings =
                settings.Value.BlobStorageProviders.FirstOrDefault(x => x.Provider == settings.Value.DefaultStorageProvider);
            _userProfileService.AddEventHandler(new RealTimeEventUserProfileEventsHandler(serviceProvider));
        }
示例#57
0
 public ProfileController(IUserProfileService userProfileService, IVideoAttributesService videoAttributesService,
                          IUserSettingsService userSettingsService, ILogService logService, IMapper mapper,
                          INewsletterService newsletterService, ICategoryService categoryService,
                          ILanguageService languageService, IVideoSettingsService videoSettingsService)
     : base(logService, mapper)
 {
     _userProfileService     = userProfileService;
     _userSettingsService    = userSettingsService;
     _videoAttributesService = videoAttributesService;
     _newsletterService      = newsletterService;
     _categoryService        = categoryService;
     _mapper               = mapper;
     _languageService      = languageService;
     _videoSettingsService = videoSettingsService;
 }
 public RegistrationManager(IEmailService emailService, IUserAccountService userAccountService,
                            IUserProfileService userProfileService, IValidationService validationService, ICryptographyService cryptographyService, ILogService logger, IClaimsPrincipalService claimsPrincipalService,
                            IAssignmentPolicyService assignmentPolicyService, IPublicUserProfileService publicUserProfileService, IAccountSettingsService accountSettingsService)
 {
     _emailService        = emailService;
     _userAccountService  = userAccountService;
     _userProfileService  = userProfileService;
     _validationService   = validationService;
     _cryptographyService = cryptographyService;
     _logger = logger;
     _claimsPrincipalService   = claimsPrincipalService;
     _assignmentPolicyService  = assignmentPolicyService;
     _publicUserProfileService = publicUserProfileService;
     _accountSettingsService   = accountSettingsService;
 }
示例#59
0
 public UserController(
     IUserSettingsService userSettingsService,
     IUserService userService,
     IUserSearchService userSearchService,
     IUserProfileService userProfileService,
     IUserImageService userImageService,
     IFriendsInvitationService friendsInvitationService)
 {
     _userSettingsService      = userSettingsService;
     _userService              = userService;
     _userSearchService        = userSearchService;
     _userProfileService       = userProfileService;
     _userImageService         = userImageService;
     _friendsInvitationService = friendsInvitationService;
 }
示例#60
0
 public WorkerService(
     IHostApplicationLifetime applicationLifetime,
     ILogger <WorkerService> logger,
     IArchiveParser archiveParser,
     IUploaderService uploaderService,
     IUserProfileService userProfileService,
     IAuthenticationService authenticationService)
 {
     _applicationLifetime = applicationLifetime;
     _logger                = logger;
     _archiveParser         = archiveParser;
     _uploaderService       = uploaderService;
     _userProfileService    = userProfileService;
     _authenticationService = authenticationService;
 }