예제 #1
0
 public EnrollmentsController(ApplicationDbContext context, ApplicationUserManager userManaager,
     ICurrentUser currentUser)
 {
     _context = context;
     _userManager = userManaager;
     _currentUser = currentUser;
 }
예제 #2
0
 public DashboardRepository(IUnitOfWork<DashboardContext> uow, ICurrentUser currentUser)
 {
     _context = uow.Context;
     this._dbSet = _context.Set<Dashboard>();
     _uow = uow;
     this._currentUser = currentUser;
 }
예제 #3
0
 public MenuItemRepository(IUnitOfWork<MenuItemContext> uow, ICurrentUser currentUser)
 {
     _context = uow.Context;
     this._dbSet = _context.Set<MenuItem>();
     _uow = uow;
     this._currentUser = currentUser;
 }
예제 #4
0
 public AuthController(
     ICurrentUser currentUser,
     IAuthentication authentication)
 {
     _currentUser = currentUser;
     _authentication = authentication;
 }
예제 #5
0
 public ManageUsersController(ApplicationDbContext context, ApplicationUserManager userManager, IEmailService emailService, ICurrentUser currentUser)
 {
     _context = context;
     _userManager = userManager;
     _emailService = emailService;
     _currentUser = currentUser;
 }
예제 #6
0
 public SignUpViewModel(IAccountStorage accountStorage, INotificationCenter notificationCenter,
     ICurrentUser currentUser)
 {
     _accountStorage = accountStorage;
     _notificationCenter = notificationCenter;
     _currentUser = currentUser;
 }
 public SecurityService(
     IAsyncRequestDispatcherFactory asycnRequestDispatcherFactory,
     ICurrentUser currentUser)
 {
     _asycnRequestDispatcherFactory = asycnRequestDispatcherFactory;
     _currentUser = currentUser;
 }
 public OperationTimerCallHandler(int acceptableTime, string identifier, string description, ICurrentUser currentUser, ILogger logger)
 {
     _acceptableTime = acceptableTime;
     _currentUser = currentUser;
     _logger = logger;
     _identifier = identifier;
     _description = description;
 }
예제 #9
0
 public RegistryManager(IGiftRepository giftRepository, ILoggingService loggingService,ICurrentUser currentUser, IUserRepository userRepository, IMailService mailService)
 {
     _giftRepository = giftRepository;
     _loggingService = loggingService;
     _currentUser = currentUser;
     _userRepository = userRepository;
     _mailService = mailService;
 }
        public IssueController(ApplicationDbContext context,
            ICurrentUser currentUser)
        {
            _context = context;
            _currentUser = currentUser;

            ViewBag.UserName = (_currentUser.Me != null) ? _currentUser.Me.MyName : "";
        }
예제 #11
0
 public AccountController(IAccountRepository accountRepo, IAccountTypeRepository accountTypeRepo,
     ITransactionTypeRepository transactionTypeRepo, ICurrentUser currentUser)
 {
     _accountRepository = accountRepo;
     _accountTypeRepository = accountTypeRepo;
     _transactionTypeRepository = transactionTypeRepo;
     _user = currentUser;
 }
 public CustomAsyncRequestDispatcher(
     IAsyncRequestProcessor requestProcessor, 
     ICacheManager cacheManager,
     ICurrentUser currentUser)
     : base(requestProcessor, cacheManager)
 {
     _currentUser = currentUser;
 }
예제 #13
0
 public FileService(IBlobService blobService, DbContext unitOfWork, ICurrentUser currentUser)
 {
     _blobService = blobService;
     _unitOfWork = unitOfWork;
     _nodeRepository = unitOfWork.Set<Node>();
     _currentUser = currentUser;
     _modelState = new ModelState();
 }
 public HomeController(
     IPreferenceRepository preferenceStore,
     ITruckDataRepository truckEventsSource,
     ICurrentUser currentUser)
 {
     _preferenceStore = preferenceStore;
     _truckEventsSource = truckEventsSource;
     _currentUser = currentUser;
 }
예제 #15
0
 public MeetingsController(ApplicationDbContext context, ICurrentUser currentUser, IEmailService emailService,
     ApplicationUserManager userManager, ApplicationRoleManager roleManager)
 {
     _context = context;
     _currentUser = currentUser;
     _emailService = emailService;
     _userManager = userManager;
     _roleManager = roleManager;
 }
예제 #16
0
        public MenuViewModel(IAccountStorage accountStorage, ICurrentUser currentUser, IArtportalenService artportalenService)
        {
            _accountStorage = accountStorage;
            _artportalenService = artportalenService;
            CurrentUser = currentUser;
            Title = "Meny";

            IsConnectedArtportalen = _artportalenService.HasAccount;
            IsNotConnectedArtportalen = !_artportalenService.HasAccount;
        }
예제 #17
0
 public BlogController(IBlogService blogService, IBlogPostService blogPostService, 
     IBlogPostCommentService blogPostCommentService, ICacheService cacheService,
     ICurrentUser currentUser)
 {
     this.blogService = blogService;
     this.blogPostService = blogPostService;
     this.blogPostCommentService = blogPostCommentService;
     this.cacheService = cacheService;
     this.currentUser = currentUser;
 }
예제 #18
0
 public TransactionController(IAccountRepository accountRepo, ICategoryRepository categoryRepo,
     ICurrentUser user, ITransactionRepository transactionRepo, 
     ITransactionTypeRepository transactionTypeRepo)
 {
     _accountRepository = accountRepo;
     _categoryRepository = categoryRepo;
     _user = user;
     _transactionRepository = transactionRepo;
     _transactionTypeRepository = transactionTypeRepo;
 }
예제 #19
0
        /// <summary>
        /// Initialises a new instance of the <see cref="DealController"/> class.
        /// </summary>
        /// <param name="log">Logging module</param>
        /// <param name="dealDataAccess">Deal data access</param>
        /// <param name="memberDataAccess">Member data access</param>
        /// <param name="commentDataAccess">Comment data access</param>
        /// <param name="voteDataAccess">Vote data access</param>
        /// <param name="voteProcessor">Vote processor</param>
        /// <param name="currentUser">Current user</param>
        public DealController(ILogger log, IDealDataAccess dealDataAccess, IMemberDataAccess memberDataAccess, ICommentDataAccess commentDataAccess, IVoteDataAccess voteDataAccess, IVoteProcessor voteProcessor, ICurrentUser currentUser)
        {
            this.log = log;
            this.dealDataAccess = dealDataAccess;
            this.memberDataAccess = memberDataAccess;
            this.commentDataAccess = commentDataAccess;
            this.voteDataAccess = voteDataAccess;
            this.voteProcessor = voteProcessor;

            this.userName = currentUser.GetCurrentUser();
        }
예제 #20
0
 public ReviewController(
     IMovieRepository movieRepository,
     IReviewRepository reviewRepository,
     ICurrentUser currentUser,
     IReviewerGenreRepository reviewerGenreRepository)
 {
     _movieRepository = movieRepository;
     _reviewRepository = reviewRepository;
     _currentUser = currentUser;
     _reviewerGenreRepository = reviewerGenreRepository;
 }
 public ArtportalenAccountStorage(ICurrentUser currentUser)
 {
     _currentUser = currentUser;
     #if __ANDROID__
     _accountStore = AccountStore.Create(Forms.Context);
     #endif
     #if __IOS__
     _accountStore = AccountStore.Create();
     #endif
     _account = _accountStore.FindAccountsForService(ServiceId).FirstOrDefault(a => a.Username == _currentUser.Id);
 }
예제 #22
0
 public CheckoutController(ApplicationDbContext context, 
                             ICurrentUser currentUser, 
                             IEmailService emailService,
                             ApplicationUserManager userManager, 
                             ApplicationSignInManager signInManager)
 {
     _context = context;
     _currentUser = currentUser;
     _emailService = emailService;
     _userManager = userManager;
     SignInManager = signInManager;
 }
예제 #23
0
 public MenuItemController(IMenuItemService menuItemService,
                             IMenuItemRepository menuItemRepository,
                             ICrudRepository<MenuItemType> menuItemTypeRepository,
     IUnitOfWork<MenuItemContext> menuItemUnitOfWork, ICurrentUser currentUser)
 {
     //db = new MenuItemContext();
     this._menuItemService = menuItemService;
     this._menuItemRepository = menuItemRepository;
     this._menuItemTypeRepository = menuItemTypeRepository;
     this._menuItemUnitOfWork=menuItemUnitOfWork;
     this._currentUser = currentUser;
 }
예제 #24
0
        /// <summary>
        /// Initialises a new instance of the <see cref="AccountController"/> class. 
        /// </summary>
        /// <param name="log">Logging module</param>
        /// <param name="memberDataAccess">Member data access</param>
        /// <param name="sessionController">Session controller</param>
        /// <param name="forgotPassword">Forgot password</param>
        /// <param name="dealDataAccess">Deal data access</param>
        /// <param name="hash">Hasher</param>
        /// <param name="emailSender">Email sender</param>
        /// <param name="currentUser">Current user</param>
        public AccountController(ILogger log, IMemberDataAccess memberDataAccess, ISessionController sessionController, IRecoverPassword forgotPassword, IDealDataAccess dealDataAccess, IHash hash, IEmailSender emailSender, ICurrentUser currentUser)
        {
            this.log = log;
            this.memberDataAccess = memberDataAccess;
            this.sessionController = sessionController;
            this.forgotPassword = forgotPassword;
            this.dealDataAccess = dealDataAccess;
            this.hash = hash;
            this.emailSender = emailSender;

            userName = currentUser.GetCurrentUser();
        }
예제 #25
0
 public ShoppingCartController(DataContext db, ICurrentUser currentUser, ISettingService settings,
     ITaxZoneService taxZoneService, ICustomerService customerService, ITaxRateService taxRateService,
     IShippingService shippingService, IProductSkuService productSkuService, IProductService productService) : base(db, currentUser)
 {
     this.settings = settings;
     this.taxZoneService = taxZoneService;
     this.customerService = customerService;
     this.taxRateService = taxRateService;
     this.shippingService = shippingService;
     this.productSkuService = productSkuService;
     this.productService = productService;
 }
예제 #26
0
파일: Account.cs 프로젝트: ammeep/giftme
 public bool HasPermissionToEdit(ICurrentUser currentUser)
 {
     switch (AccountType)
     {
         case AccountType.Guest:
             return currentUser.AccountType == AccountType.Admin;
         case AccountType.Host:
             return currentUser.AccountType == AccountType.Admin ||
                   (currentUser.AccountType == AccountType.Host && currentUser.AccountId == AccountId);
         case AccountType.Admin:
             return currentUser.AccountType == AccountType.Admin;
         default:
             return false;
     }
 }
 public ClientsController(
     IIndividualClientsService individualClientsService, 
     IJuridicalClientsService juridicalClientsService,
     ICountryService countryService,
     ICurrentUser currentUser,
     ISettingsService settingsService,
     IValidationService<CreateIndividualClientViewModel> individualClientValidationService,
     IValidationService<CreateJuridicalClientViewModel> juridicalClientValidationService)
 {
     this.individualClientsService = individualClientsService;
     this.juridicalClientsService = juridicalClientsService;
     this.countryService = countryService;
     this.currentUser = currentUser;
     this.settingsService = settingsService;
     this.individualClientValidationService = individualClientValidationService;
     this.juridicalClientValidationService = juridicalClientValidationService;
 }
예제 #28
0
        public static bool ValidateNode(this ModelState modelState, Node node, ICurrentUser currentUser)
        {
            if (node == null)
            {
                modelState.ErrorMessage = "The item is not found";

                return modelState.IsValid;
            }

            if (ValidationHelper.IsUserHasAccess(node, currentUser) == false)
            {
                modelState.ErrorMessage = "Access denied";

                return modelState.IsValid;
            }

            return modelState.IsValid;
        }
예제 #29
0
 public DashboardController(IMenuItemService menuItemService, IDashboardService dashboardService,
                             IMenuItemRepository menuItemRepository,
                             IDashboardRepository dashboardRepository,
     //IDashboardUserRepository dashboardUserRepository,
                             IApplicationUserRepository ApplicationUserRepository,
                             ICrudRepository<SharedWith> sharedWithRepository,
                             ICrudRepository<DashboardType> dashboardTypeRepository,
       IUnitOfWork<DashboardContext> dashboardUnitOfWork, ICurrentUser currentUser)
 {
     //db = new SJiraContext();
     this._menuItemService = menuItemService;
     this._menuItemRepository = menuItemRepository;
     this._dashboardRepository = dashboardRepository;
     this._dashboardService = dashboardService;
     //this._dashboardUserRepository = dashboardUserRepository;
     this._ApplicationUserRepository = ApplicationUserRepository;
     this._sharedWithRepository = sharedWithRepository;
     this._dashboardTypeRepository = dashboardTypeRepository;
     this._dashboardUnitOfWork = dashboardUnitOfWork;
     this._currentUser = currentUser;
 }
예제 #30
0
        public static MvcHtmlString LaunchMeetingButton(ApplicationDbContext context, ICurrentUser currentUser)
        {
            var button = new MvcHtmlString("There are no meetings scheduled for today.");

            if (currentUser.User == null)
                return button;

            var utcOffset = TimeDateServices.GetUtcOffSet();
            //person can be up to 25 minutes late for meeting and will still show on main page
            var cutOff = DateTime.UtcNow.AddMinutes(-25);

            var theseGuysMeetingsList = context.Meetings.Include("Instructor")
                .Where(m => m.Start > cutOff)
                .Where(m => m.InstructorId == currentUser.User.Id || m.StudentId == currentUser.User.Id)
                .ToList();

            var theseGuysMeetings = theseGuysMeetingsList.Select(d => new MeetingDto
            {
                StartDay = d.Start.AddMinutes(utcOffset).ToShortDateString(),
                InstructorId = d.InstructorId,
                Instructor = d.Instructor,
                Start = d.Start.AddMinutes(utcOffset),
                GtmUrl = d.GtmUrl
            });

            var localDate = DateTime.UtcNow.AddMinutes(utcOffset).ToShortDateString();
            var nextMeetingToday = theseGuysMeetings.FirstOrDefault(m => m.Start.ToShortDateString() == localDate);


            if (nextMeetingToday != null)
            {
                var buttonText = "Launch Meeting with " + nextMeetingToday.Instructor.FirstName + " at " +
                                 nextMeetingToday.Start.ToShortTimeString();

                button = BootstrapHelpers.AnchorButton(nextMeetingToday.GtmUrl, buttonText);
            }

            return button;
        }
 public ApplicationDbContextAuditDecorator(IMyDbContext context, ICurrentUser currentUser)
 {
     this.context     = context;
     this.currentUser = currentUser;
 }
예제 #32
0
 public async Task <List <UserIdentityDto> > GetListAsync([FromServices] ICurrentUser currentUser)
 {
     return((await _userCommunityService.GetListAsync(currentUser.Id ?? 0)).Where(r => r.IdentityType != LinUserIdentity.Password).ToList());
 }
 public LogActionFilterAttribute(ILogger <LogActionFilterAttribute> logger, ICurrentUser currentUser)
 {
     _logger      = logger;
     _currentUser = currentUser;
 }
예제 #34
0
 public bool IsWhite(ICurrentUser user) => this.Any(x => x.PidPseudonym.Equals(user.PidPseudonym, StringComparison.InvariantCultureIgnoreCase));
        public UsersListViewModel(INetworkConnectionController networkConnectionController, IEventAggregator eventAggregator, IChatManager chatManager, ICurrentUser currentUser)
        {
            _networkConnectionController = networkConnectionController;
            _eventAggregator             = eventAggregator;
            _chatManager = chatManager;
            _currentUser = currentUser;

            _networkConnectionController.MessageReceivedEventHandler += NewMessageFromServer;
            _eventAggregator.GetEvent <LogoffEvent>().Subscribe(Logoff);

            SelectedSocketUser = new SocketUser();
            OnlineSocketUsers  = new ObservableCollection <SocketUser>();
            OfflineSocketUsers = new ObservableCollection <SocketUser>();

            ViewLoadedCommand = new DelegateCommand(LoadView);
        }
예제 #36
0
        public IQueryable <CatChargeModel> Paging(CatChargeCriteria criteria, int page, int size, out int rowsCount)
        {
            ICurrentUser _user       = PermissionExtention.GetUserMenuPermission(currentUser, Menu.catCharge);
            var          rangeSearch = PermissionExtention.GetPermissionRange(currentUser.UserMenuPermission.List);

            if (rangeSearch == PermissionRange.None)
            {
                rowsCount = 0;
                return(null);
            }

            Expression <Func <CatCharge, bool> > query = null;

            if (string.IsNullOrEmpty(criteria.All))
            {
                query = x => (x.ChargeNameEn ?? "").IndexOf(criteria.ChargeNameEn ?? "", StringComparison.OrdinalIgnoreCase) > -1 &&
                        (x.ChargeNameVn ?? "").IndexOf(criteria.ChargeNameVn ?? "", StringComparison.OrdinalIgnoreCase) > -1 &&
                        (x.Code ?? "").IndexOf(criteria.Code ?? "", StringComparison.OrdinalIgnoreCase) > -1 &&
                        (x.Type ?? "").IndexOf(criteria.Type ?? "", StringComparison.OrdinalIgnoreCase) > -1 &&
                        (x.ServiceTypeId ?? "").IndexOf(criteria.ServiceTypeId ?? "", StringComparison.OrdinalIgnoreCase) > -1 &&
                        (x.Active == criteria.Active || criteria.Active == null)
                ;
            }
            else
            {
                query = x => ((x.ChargeNameEn ?? "").IndexOf(criteria.All ?? "", StringComparison.OrdinalIgnoreCase) > -1 ||
                              (x.ChargeNameVn ?? "").IndexOf(criteria.All ?? "", StringComparison.OrdinalIgnoreCase) > -1 ||
                              (x.Code ?? "").IndexOf(criteria.All ?? "", StringComparison.OrdinalIgnoreCase) > -1 ||
                              (x.Type ?? "").IndexOf(criteria.All ?? "", StringComparison.OrdinalIgnoreCase) > -1 ||
                              (x.ServiceTypeId ?? "").IndexOf(criteria.All ?? "", StringComparison.OrdinalIgnoreCase) > -1) &&
                        (x.Active == criteria.Active || criteria.Active == null);
            }

            // Query with Permission Range.
            switch (rangeSearch)
            {
            case PermissionRange.Owner:
                query = query.And(x => x.UserCreated == currentUser.UserID && x.CompanyId == currentUser.CompanyID);
                break;

            case PermissionRange.Group:
                query = query.And(x => (x.GroupId == currentUser.GroupId && x.DepartmentId == currentUser.DepartmentId && x.OfficeId == currentUser.OfficeID && x.CompanyId == currentUser.CompanyID) ||
                                  x.UserCreated == currentUser.UserID);
                break;

            case PermissionRange.Department:
                query = query.And(x => (x.DepartmentId == currentUser.DepartmentId && x.OfficeId == currentUser.OfficeID && x.CompanyId == currentUser.CompanyID) ||
                                  x.UserCreated == currentUser.UserID);
                break;

            case PermissionRange.Office:
                query = query.And(x => (x.OfficeId == currentUser.OfficeID && x.CompanyId == currentUser.CompanyID) || x.UserCreated == currentUser.UserID);
                break;

            case PermissionRange.Company:
                query = query.And(x => x.CompanyId == currentUser.CompanyID || x.UserCreated == currentUser.UserID);
                break;

            default:
                break;
            }
            var data = DataContext.Paging(query, page, size, x => x.DatetimeModified, false, out rowsCount);

            var datamap = data.ProjectTo <CatChargeModel>(mapper.ConfigurationProvider);

            return(datamap);
        }
예제 #37
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserRepository"/> class.
 /// </summary>
 /// <param name="unitOfWorkManager"></param>
 /// <param name="currentUser"></param>
 public UserRepository(UnitOfWorkManager unitOfWorkManager, ICurrentUser currentUser) : base(unitOfWorkManager, currentUser)
 {
 }
예제 #38
0
 public LogActionFilterAttribute(ICurrentUser currentUser, IDiagnosticContext diagnosticContext, IAuditBaseRepository <LinLog> logRepository)
 {
     _currentUser        = currentUser;
     _diagnosticContext  = diagnosticContext;
     this._logRepository = logRepository;
 }
 public UserSubscribeController(IAuditBaseRepository <UserSubscribe> userSubscribeRepository, ICurrentUser currentUser, IUserRepository userRepository, IAuditBaseRepository <UserTag> userTagRepository, ICapPublisher capPublisher, IFileRepository fileRepository)
 {
     _userSubscribeRepository = userSubscribeRepository;
     _currentUser             = currentUser;
     _userRepository          = userRepository;
     _userTagRepository       = userTagRepository;
     _capBus         = capPublisher;
     _fileRepository = fileRepository;
 }
예제 #40
0
 public CreateAdCommandHander(IAdFactory adFactory, IAdRepository adRepository, ICustomerRepository customerRepository, ICurrentUser currentUser)
 {
     this.adFactory          = adFactory;
     this.adRepository       = adRepository;
     this.customerRepository = customerRepository;
     this.currentUser        = currentUser;
 }
예제 #41
0
 protected void SaveUserInfo(ICurrentUser currentUser)
 {
     CurrentContext.SaveUser(currentUser);
 }
예제 #42
0
 public ConfigurationAppService(IOptions <AbpLocalizationOptions> localizationOptions, IServiceProvider serviceProvider, IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider, IAuthorizationService authorizationService, ICurrentUser currentUser, ISettingProvider settingProvider, SettingDefinitionManager settingDefinitionManager, IFeatureDefinitionManager featureDefinitionManager, ILanguageProvider languageProvider) : base(localizationOptions, serviceProvider, abpAuthorizationPolicyProvider, authorizationService, currentUser, settingProvider, settingDefinitionManager, featureDefinitionManager, languageProvider)
 {
 }
예제 #43
0
 public UnitOfWork(IDataContextAsync context, ICurrentUser currentUser)
 {
     _context     = context;
     _currentUser = currentUser;
 }
예제 #44
0
 public UserSettingValueProvider(ISettingStore settingStore, ICurrentUser currentUser)
     : base(settingStore)
 {
     CurrentUser = currentUser;
 }
 public GetOrderQueryValidator(IDbContext dbContext, ICurrentUser currentUser)
 {
     _dbContext = dbContext;
     RuleFor(o => o.OrderId).NotEmpty().Must((b) => { return(Exist(b)); });
 }
예제 #46
0
 public BasketBookCount(IBasketService basketService, ICurrentUser currentUser, IHttpContextAccessor httpContextAccessor) : base()
 {
     _basketService       = basketService;
     _currentUser         = currentUser;
     _httpContextAccessor = httpContextAccessor;
 }
예제 #47
0
 public WebNewsController(IBaseOperations context, ICurrentUser currentUser)
 {
     _context     = context;
     _currentUser = currentUser;
 }
 public IssueController(ApplicationDbContext context,
                        ICurrentUser currentUser)
 {
     _context     = context;
     _currentUser = currentUser;
 }
 public TraceLogRepository(IOrmSession ormSession, ICurrentUser <Guid> currentUser)
     : base("tracelog", ormSession, currentUser)
 {
 }
예제 #50
0
 public ListUserRolesQueryHandler(IAppRepository repo, ICurrentUser currentUser)
 {
     _repo        = repo;
     _currentUser = currentUser;
 }
예제 #51
0
 public void Setup()
 {
     _httpContextAccessor = new Mock <IHttpContextAccessor>();
     _currentUser         = new CurrentUser(_httpContextAccessor.Object);
 }
예제 #52
0
 public static string FindClaimValue(this ICurrentUser currentUser, string claimType)
 {
     return(currentUser.FindClaim(claimType)?.Value);
 }
 public AddNoteCommentCommandHandler(ICurrentUser currentUser, IAggregateRepository aggregateRepository)
 {
     _currentUser         = currentUser;
     _aggregateRepository = aggregateRepository;
 }
예제 #54
0
 public AuditBaseRepo(UnitOfWorkManager unitOfWorkManager, ICurrentUser currentUser) : base(unitOfWorkManager, currentUser)
 {
 }
예제 #55
0
파일: UserService.cs 프로젝트: mrBlufi/TODO
 public UserService(IRepository <UserData> userRepository, IRepository <RoleData> roleRepository, ICurrentUser currentUser, ICrytpoService crytpoService, IMapper mapper)
 {
     this.userRepository = userRepository;
     this.roleRepository = roleRepository;
     this.currentUser    = currentUser;
     this.crytpoService  = crytpoService;
     this.mapper         = mapper;
 }
예제 #56
0
 public TestController(ICurrentUser currentUser,
                       IMapper mapper)
 {
     _currentUser = currentUser;
     _mapper      = mapper;
 }
예제 #57
0
 public AbpSignalRUserIdProvider(ICurrentPrincipalAccessor currentPrincipalAccessor, ICurrentUser currentUser)
 {
     _currentPrincipalAccessor = currentPrincipalAccessor;
     _currentUser = currentUser;
 }
예제 #58
0
 public UserFeatureValueProvider(IFeatureStore featureStore, ICurrentUser currentUser) : base(featureStore)
 {
     _currentUser = currentUser;
 }
예제 #59
0
 public SecurityProvider(DataContext context, ICurrentUser currentUser)
     : base(context, currentUser)
 {
 }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="localizer"></param>
 /// <param name="service"></param>
 /// <param name="user"></param>
 public AcctSOAController(IStringLocalizer <LanguageSub> localizer, IAcctSOAService service, ICurrentUser user)
 {
     stringLocalizer = localizer;
     acctSOAService  = service;
     currentUser     = user;
 }