コード例 #1
0
 public InfectionService(IUserInfoManager userInfoManager, DBContext context, INotificationManager notificationManager, IExternalPlatformService externalPlatformService)
 {
     _userInfoManager         = userInfoManager;
     _context                 = context;
     _notificationManager     = notificationManager;
     _externalPlatformService = externalPlatformService;
 }
コード例 #2
0
ファイル: CheckService.cs プロジェクト: mwaehner/TP1_COVIDWEB
 public CheckService(DBContext context, ILocationService locationService, IUserInfoManager userInfoManager, IExternalPlatformService externalPlatformService)
 {
     _context                 = context;
     _locationService         = locationService;
     _userInfoManager         = userInfoManager;
     _externalPlatformService = externalPlatformService;
 }
コード例 #3
0
 public CheckController(IUserInfoManager userInfoManager, DBContext context, ILocationService locationService, ICheckService checkService)
 {
     _context         = context;
     _userInfoManager = userInfoManager;
     _locationService = locationService;
     _checkService    = checkService;
 }
コード例 #4
0
 public LocationsController(UserManager <ApplicationUser> userManager, DBContext context, IUserInfoManager userInfoManager, ILocationService locationService)
 {
     _userManager     = userManager;
     _userInfoManager = userInfoManager;
     _context         = context;
     _locationService = locationService;
 }
コード例 #5
0
 public ReportsController(DBContext context, IUserInfoManager userInfoManager, IEmailSender emailSender, IInfectionService infectionManager)
 {
     _context          = context;
     _userInfoManager  = userInfoManager;
     _emailSender      = emailSender;
     _infectionManager = infectionManager;
 }
コード例 #6
0
 public LoginService(ILoginManager loginManager, IUserInfoManager userInfoManager,
                     IUserTokenService userTokenService)
 {
     UserTokenService = userTokenService;
     LoginManager     = loginManager;
     InfoManager      = userInfoManager;
 }
コード例 #7
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public UserInfoAppService(
     IRepository <UserInfo, Guid> userinfoRepository
     , IUserInfoManager userinfoManager
     )
 {
     _userinfoRepository = userinfoRepository;
     _userinfoManager    = userinfoManager;
 }
コード例 #8
0
 public StartViewModel(ApplicationUser user, IUserInfoManager userInfoManager)
 {
     this._user            = user;
     this._userInfoManager = userInfoManager;
     this._user.UserId     = _userInfoManager.GetUserInfoByLogin(user.Username).UserID;
     CloseCommand          = new RelayCommand(CloseWindow, p => true);
     ExitCommand           = new RelayCommand(Exit, p => true);
     OrderButtonCommand    = new RelayCommand(ShowOrders, p => true);
 }
コード例 #9
0
 public LoginViewModel(IAuthManager security, IUserInfoManager userInfoManager, ApplicationUser user)
 {
     this._security        = security;
     this._user            = user;
     this._userInfoManager = userInfoManager;
     _LoginButtonCommand   = new RelayCommand(Login, p => true);
     CloseCommand          = new RelayCommand(CloseWindow, p => true);
     ExitCommand           = new RelayCommand(Exit, p => true);
 }
コード例 #10
0
 public UserPage(IUserInfoManager userInfoManager, IApplicationUser user, ICountryManager countryManager, IAdressManager adressManager, ICardInfoMananger cardInfoMananger)
 {
     this._user             = user;
     this._userInfoManager  = userInfoManager;
     this._countryManager   = countryManager;
     this._adressManager    = adressManager;
     this._cardInfoMananger = cardInfoMananger;
     InitializeComponent();
     InitFields();
 }
コード例 #11
0
 public LoginForm(IAuthManager manager, IRegisterManager registerManager, IAdressManager adressManager, IBankManager bankManager, ICountryManager countryManager, IUserInfoManager userInfoManager, IApplicationUser user)
 {
     InitializeComponent();
     _manager = manager;
     this._registerManager = registerManager;
     this._adressManager   = adressManager;
     this._bankManager     = bankManager;
     this._countryManager  = countryManager;
     this._user            = user;
     this._userInfoManager = userInfoManager;
 }
コード例 #12
0
 public UserStartPage(IApplicationUser user,
                      ICategoryManager categoryManager,
                      IItemManager itemManager,
                      IOrderManager orderManager,
                      IOrderedManager orderedManager,
                      IOrderStatusManager orderStatusManager,
                      IUserInfoManager userInfoManager)
 {
     InitializeComponent();
     this._user               = user;
     this._itemManager        = itemManager;
     this._orderManager       = orderManager;
     this._orderedManager     = orderedManager;
     this._orderStatusManager = orderStatusManager;
     this._userInfoManager    = userInfoManager;
     InitFields();
 }
コード例 #13
0
 public MainController(IMoneyContainer container,
                       IMoneyUserManager moneyUserManager,
                       IMoneyRoleManager moneyRoleManager,
                       ILogManager logManager,
                       IRegistration registration,
                       IUserInfoManager userInfoManager,
                       IAccountDatabaseManager accDatabaseManager,
                       IAuthentication authentication,
                       IMoneyImageParser moneyImageParser,
                       IPermissionManager permissionManager)
 {
     this.container      = container;
     _moneyUserManager   = moneyUserManager;
     _moneyRoleManager   = moneyRoleManager;
     _logManager         = logManager;
     _userInfoManager    = userInfoManager;
     _registration       = registration;
     _accDatabaseManager = accDatabaseManager;
     _authentication     = authentication;
     _permissionManager  = permissionManager;
     _moneyImageParser   = moneyImageParser;
 }
コード例 #14
0
ファイル: Global.asax.cs プロジェクト: zhengge90/first-code
        /// <summary>
        /// 设置初始账号
        /// </summary>
        private void SetInitAccount()
        {
            IApplicationContext cxt    = ContextRegistry.GetContext();
            IUserInfoManager    manger = (IUserInfoManager)cxt.GetObject("Manager.UserInfo");

            const string account = "admin";
            var          user    = manger.Get(account);

            if (user == null)
            {
                user = new Domain.UserInfo
                {
                    Account    = account,
                    Name       = "管理员",
                    ID         = Guid.NewGuid(),
                    CreateTime = DateTime.Now,
                    IsEnabled  = true
                };

                manger.Save(user);
            }
        }
コード例 #15
0
 public Authentication(IUserInfoManager usr)
 {
     _user = usr;
 }
コード例 #16
0
        public SecurityController(IUserInfoManager usr)
        {
            _user = usr;

        }
コード例 #17
0
 public UserInfoController(IUserInfoManager users)
 {
     _users = users;
 }
コード例 #18
0
 public StatisticsController(IUserInfoManager userInfoManager, DBContext context)
 {
     _userInfoManager = userInfoManager;
     _context         = context;
 }
コード例 #19
0
 public Authorization(IUserInfoManager usr)
 {
     _user = usr;
 }