public CryptoService(ICryptoTradeHistoryRepository cryptoTradeHistoryRepository, IUserIdentityRepository userIdentityRepository,
                      InfluxDbData.IRepository <CryptoData> cryptoRepository, IMapper autoMapper) : base(cryptoTradeHistoryRepository, autoMapper)
 {
     this.cryptoTradeHistoryRepository = cryptoTradeHistoryRepository;
     this.userIdentityRepository       = userIdentityRepository;
     this.cryptoRepository             = cryptoRepository;
 }
Beispiel #2
0
 public TagService(ITagRepository tagRepository, IPaymentTagRepository paymentTagRepository, IUserIdentityRepository userIdentityRepository, IHttpContextAccessor httpContextAccessor)
 {
     this.tagRepository          = tagRepository;
     this.paymentTagRepository   = paymentTagRepository;
     this.userIdentityRepository = userIdentityRepository;
     this.httpContextAccessor    = httpContextAccessor;
 }
        public UsersController()
        {
            var kernel = new StandardKernel(new RepositoryModule());

            _usersRepository = kernel.Get <IUserIdentityRepository <ApplicationUser> >();
            _rolesRepository = kernel.Get <IRoleIdentityRepository <IdentityRole> >();
        }
 public RequireLoginAttribute(IUserIdentityRepository UserIdentityRepository)
 {
     if (UserIdentityRepository == null) {
         throw new ArgumentNullException("UserIdentityRepository");
     }
     this.userIdentityRepository = UserIdentityRepository;
 }
Beispiel #5
0
 public CryptoService(IHttpContextAccessor httpContextAccessor, ICryptoTradeHistoryRepository cryptoTradeHistoryRepository, IUserIdentityRepository userIdentityRepository, InfluxDbData.IRepository <CryptoData> cryptoRepository)
 {
     this.httpContextAccessor          = httpContextAccessor;
     this.cryptoTradeHistoryRepository = cryptoTradeHistoryRepository;
     this.userIdentityRepository       = userIdentityRepository;
     this.cryptoRepository             = cryptoRepository;
 }
Beispiel #6
0
 public TagService(ITagRepository tagRepository, IPaymentTagRepository paymentTagRepository, IUserIdentityRepository userIdentityRepository, IMapper autoMapper)
     : base(tagRepository, autoMapper)
 {
     this.tagRepository          = tagRepository;
     this.paymentTagRepository   = paymentTagRepository;
     this.userIdentityRepository = userIdentityRepository;
 }
 public AdminService(IPostRepository postRepository,
                     IConnectionFactory connectionFactory,
                     IUserIdentityRepository userIdentityRepository)
 {
     _postRepository         = postRepository;
     _connectionFactory      = connectionFactory;
     _userIdentityRepository = userIdentityRepository;
 }
Beispiel #8
0
 public UserRepository(ApplicationDbContext applicationDbContext, IHttpContextAccessor httpContextAccessor,
                       IUserIdentityRepository userIdentityRepository, IUserLoginIdentity userLoginIdentity)
 {
     _applicationDbContext   = applicationDbContext;
     _httpContextAccessor    = httpContextAccessor;
     _userIdentityRepository = userIdentityRepository;
     _userLoginIdentity      = userLoginIdentity;
 }
 public HomeController(IUserRepository userRepository,
                       IUserIdentityRepository userIdentityRepository,
                       IHttpContextAccessor httpContextAccessor)
 {
     _userRepository         = userRepository;
     _userIdentityRepository = userIdentityRepository;
     _httpContextAccessor    = httpContextAccessor;
 }
Beispiel #10
0
 public UserIdentityViewComponent(IUserIdentityRepository userIdentityRepository,
                                  IUserLoginIdentity userLoginIdentity,
                                  IHttpContextAccessor httpContextAccessor)
 {
     _userIdentityRepository = userIdentityRepository;
     _userLoginIdentity      = userLoginIdentity;
     _httpContextAccessor    = httpContextAccessor;
 }
Beispiel #11
0
 public MainViewModel()
 {
     userIdentityRepository = new UserIdentityRepository();
     userProfileRepository = new UserProfileRepository();
     userService = new UserService();
     GoToLoginCmd = new GoToLoginCommand(this);
     GoToRegisterCmd = new GoToRegisterCommand(this);
 }
Beispiel #12
0
 public IUserIdentityRepository UserIdentityRepository()
 {
     if (this._repoUsuarioIdentity == null)
     {
         this._repoUsuarioIdentity = new UserIdentityRepository(this.configuration, this.userManager, this.roleManager, this._contexto);
     }
     return(this._repoUsuarioIdentity);
 }
Beispiel #13
0
        public PersonalDataProtectionViewModel(UserRegistration userRegistration)
        {
            this.userIdentityRepository = new UserIdentityRepository();
            this.userProfileRepository  = new UserProfileRepository();
            this.userService            = new UserService();
            this.userRegistration       = userRegistration;
            GoToVerificationCmd         = new GoToVerificationCommand(this);
            var strBuilder = new StringBuilder();

            strBuilder.Append("<!DOCTYPE html>")
            .Append("<html>")
            .Append("<head>")
            .Append("<meta charset=utf-8 />")
            .Append("<meta name=\"viewport\" content=\"width = device - width, initial - scale = 1.0\">")
            .Append("<title>©2017 Call Aladdin Disclaimer</title>")
            .Append("</head>")
            .Append("<body style=\"background-color: #EAECF5\">")
            .Append("<div style=\"background-color: lightgray; padding: 10px; text-align:justify\">")

            .Append(" <h3><u>PERSONAL DATA PROTECTION</u></h3>")
            .Append(" <p>You agree and consent to the Company using and processing your Personal Data for the Purposes and in the manner as identified hereunder.</p>")
            .Append(" <p>The Company views your Personal Data and privacy seriously. For the purposes of this Agreement, “Personal Data” means information about you, from which you are identifiable, including but not limited to your name, identification card number, birth certificate number, passport number, nationality, address, telephone number, credit or debit card details, race, gender, date of birth, email address, any information about you which you have provided to the Company in registration forms, application forms or any other similar forms and / or any information about you that has been or may be collected, stored, used and processed by the Company from time to time and includes sensitive personal data such as data relating to health, religious or other similar beliefs.</p>")
            .Append("<p>The provision of your Personal Data is voluntary. However if you do not provide the Company your Personal Data, your request for the Application may be incomplete and the Company will not be able to process your Personal Data for the Purposes outlined below and may cause the Company to be unable to allow you to use our services.Your continued usage of our services is deemed consent for the Company to collect, process and store the data.Failure to consent to the above may result in the Company being unable to continue or provide the services or facilities to you.</p>")
            .Append("<p>The Company may use and process your Personal Data for business and activities of the Company which shall include, without limitation the following(“the Purpose”):</p>")

            .Append("<ul>")
            .Append("  <li>To perform the Company’s obligations in respect of any arrangements entered into with you;</li>")
            .Append("   <li>To provide you with any services pursuant to the Terms and Conditions herein;</li>")
            .Append("<li>To process your participation in any events, promotions, activities, focus groups, research studies, contests, promotions, polls, surveys or any productions and to communicate with you regarding your attendance thereto;</li>")
            .Append("<li>Process, manage or verify your application for our services pursuant to the Terms and Conditions herein;</li>")
            .Append("<li>To validate and/or process payments (if any) pursuant to the Terms and Conditions herein;</li>")
            .Append("<li>To develop, enhance and provide what is required pursuant to the Terms and Conditions herein to meet your needs;</li>")
            .Append("<li>To process any refunds, rebates and/or charges pursuant to the Terms and Conditions herein;</li>")
            .Append("<li>To facilitate or enable any checks as may be required pursuant to the Terms and Conditions herein;</li>")
            .Append("<li>To respond to questions, comments and feedback from you;</li>")
            .Append("<li>To communicate with you for any of the purposes listed herein;</li>")
            .Append("<li>For internal administrative purposes, such as auditing, data analysis, database records;</li>")
            .Append("<li>For purposes of detection, prevention and prosecution of crime;</li>")
            .Append("<li>For the Company to comply with its obligations under law;</li>")
            .Append("<li>To send you alerts, newsletters, updates, mailers, promotional materials, special privileges, festive greetings from the Company, its partners, advertisers and / or sponsors;</li>")
            .Append("<li>To notify and invite you to events or activities organised by the Company, its partners, advertisers, and/or sponsors;</li>")
            .Append("<li>To share your Personal Data amongst the companies within the Company’s group of companies (if any) comprising the subsidiaries, associate companies and / or jointly controlled entities of the holding company of the group (“the Group”) and with the Company’s and Group’s agents, third party providers, developers, advertisers, partners, event companies or sponsors who may communicate with you for any reasons whatsoever.</li>")
            .Append("</ul>")

            .Append("<p>The Company may share Personal Data with companies who provide services such as information processing, extending credit, fulfilling customer orders, delivering products to you, managing and enhancing customer data, providing customer service, assessing your interest in our products and services, and conducting customer research or satisfaction surveys.These companies are obligated to protect your information.</p>")
            .Append(" <p>It may be necessary − by law, legal process, litigation, and/or requests from public and governmental authorities within or outside your country of residence − for the Company to disclose your personal information.We may also disclose information about you if we determine that for purposes of national security, law enforcement, or other issues of public importance, disclosure is necessary or appropriate.</p>")
            .Append("<p>We may also disclose information about you if we determine that disclosure is reasonably necessary to enforce our terms and conditions or protect our operations or users.Additionally, in the event of a reorganization, merger, or sale we may transfer any and all personal information we collect to the relevant third party.</p>")
            .Append("<p>If you do not consent to the Company processing your Personal Data for any of the Purposes, please notify the Company using the support contact details as provided in the application.</p>")
            .Append("<p>If any of the Personal Data that you have provided to us changes, for example, if you change your e- mail address, telephone number, payment details or if you wish to cancel your account, please update your details by sending your request to the support contact details as provided in the application. We may decline to process requests that are frivolous / vexatious, jeopardize the privacy of others, are extremely impractical, or for which access is not otherwise required by local law.</p>")
            .Append("<p>We will, to the best of our abilities, effect such changes as requested within fourteen (14) working days of receipt of such notice of change.</p> ")
            .Append(" <p>By submitting your information you consent to the use of that information as set out in the form of submission.</p>")

            .Append("</div>")
            .Append("</body>")
            .Append("</html>");

            this.PersonalDataProtectionText = strBuilder.ToString();
        }
Beispiel #14
0
        public UserIdentitysController(
            IUserIdentityRepository UserIdentityRepository,
            ILogger logger)
        {
            this.UserIdentityRepository = UserIdentityRepository;
            this.logger = logger;

            this.logger.Trace("Call UnitController");
        }
Beispiel #15
0
 public ComodityService(IComodityTradeHistoryRepository comodityTradeHistoryRepository, IUserIdentityRepository userIdentityRepository,
                        IComodityTypeRepository comodityTypeRepository, IComodityUnitRepository comodityUnitRepository,
                        InfluxDbData.IRepository <ComodityData> comodityRepository, IMapper autoMapper) : base(comodityTradeHistoryRepository, autoMapper)
 {
     this.comodityTradeHistoryRepository = comodityTradeHistoryRepository;
     this.userIdentityRepository         = userIdentityRepository;
     this.comodityTypeRepository         = comodityTypeRepository;
     this.comodityUnitRepository         = comodityUnitRepository;
     this.comodityRepository             = comodityRepository;
 }
Beispiel #16
0
 public void Init()
 {
     _repository        = new UserIdentityRepository();
     _missionRepository = new MissionRepository();
     _userRepository    = new UserRepository();
     _ratingRepository  = new RatingRepository();
     _service           = new UserIdentityService(_repository);
     _userService       = new UserService(_userRepository, _missionRepository, _ratingRepository, new AppCountersService(new AppCountersRepository()));
     _controller        = new UserIdentityController(_userService, _service, new MailService(null, _repository), null);
 }
 public BankAccountService(IPaymentRepository paymentRepository, IUserIdentityRepository userIdentityRepository,
                           IBankAccountRepository bankAccountRepository, IPaymentTagRepository paymentTagRepository,
                           IInterestRateRepository interestRateRepository, IMapper autoMapper) : base(bankAccountRepository, autoMapper)
 {
     this.paymentRepository      = paymentRepository;
     this.userIdentityRepository = userIdentityRepository;
     this.bankAccountRepository  = bankAccountRepository;
     this.paymentTagRepository   = paymentTagRepository;
     this.interestRateRepository = interestRateRepository;
 }
Beispiel #18
0
 public LoginController( ILoginService LoginService, IUserIdentityRepository UserIdentityRepository )
 {
     if ( LoginService == null ) {
         throw new ArgumentNullException( "LoginService" );
     }
     if ( UserIdentityRepository == null ) {
         throw new ArgumentNullException( "UserIdentityRepository" );
     }
     this.loginService = LoginService;
     this.userIdentityRepository = UserIdentityRepository;
 }
Beispiel #19
0
 public BankAccountService(IPaymentRepository paymentRepository, IUserIdentityRepository userIdentityRepository,
                           IHttpContextAccessor httpContextAccessor, IBankAccountRepository bankAccountRepository, IPaymentTagRepository paymentTagRepository,
                           IInterestRateRepository interestRateRepository)
 {
     this.paymentRepository      = paymentRepository;
     this.userIdentityRepository = userIdentityRepository;
     this.httpContextAccessor    = httpContextAccessor;
     this.bankAccountRepository  = bankAccountRepository;
     this.paymentTagRepository   = paymentTagRepository;
     this.interestRateRepository = interestRateRepository;
 }
 public UserIdentityService(IUserIdentityRepository UserIdentityRepository, IUserRepository UserRepository)
 {
     if ( UserIdentityRepository == null ) {
         throw new ArgumentNullException( "UserIdentityRepository" );
     }
     if ( UserRepository == null ) {
         throw new ArgumentNullException( "UserRepository" );
     }
     this.userIdentityRepository = UserIdentityRepository;
     this.userRepository = UserRepository;
 }
        public UserProfileUserControlViewModel(/*UserProfile userProfile*/ HomeViewModel homeViewModel)
        {
            this.parentViewModel = homeViewModel;
            this.UserProfile     = parentViewModel.UserProfile;
            UpdateUserProfile(UserProfile);

            userIdentityRepository = new UserIdentityRepository();
            userProfileRepository  = new UserProfileRepository();
            LogoutCmd      = new LogoutCommand(this);
            EditProfileCmd = new EditProfileCommand(this);

            this.SubscribeMeToThis(parentViewModel);
        }
 public UserLoginViewModel(string emailAddress)
 {
     if (!string.IsNullOrEmpty(emailAddress))
     {
         Email = emailAddress;
     }
     userService            = new UserService();
     userProfileRepository  = new UserProfileRepository();
     userIdentityRepository = new UserIdentityRepository();
     CancelLoginCmd         = new CancelLoginCommand(this);
     LoginToHomeCmd         = new LoginToHomeCommand(this);
     ForgottenPasswordCmd   = new ForgottenPasswordCommand(this);
 }
Beispiel #23
0
 public UserIdentityService(IConnectionFactory connectionFactory,
                            IUserIdentityRepository userIdentityRepository,
                            IUserGroupsIdentityRepository userGroupsIdentityRepository,
                            IUserClaimsIdentityRepository userClaimsIdentityRepository,
                            IUserExternalLoginsIdentityRepository userLoginsIdentityRepository,
                            IGroupIdentityRepository groupIdentityRepository)
 {
     _connectionFactory            = connectionFactory;
     _userIdentityRepository       = userIdentityRepository;
     _userGroupsIdentityRepository = userGroupsIdentityRepository;
     _userClaimsIdentityRepository = userClaimsIdentityRepository;
     _userLoginsIdentityRepository = userLoginsIdentityRepository;
     _groupIdentityRepository      = groupIdentityRepository;
 }
Beispiel #24
0
        public EditRequestorProfileViewModel(object owner)
        {
            var parentViewModel = (UserProfileUserControlViewModel)owner;

            this.parentViewModel = parentViewModel;
            if (parentViewModel != null)
            {
                var tempUserProfile = parentViewModel.UserProfile;
                if (tempUserProfile != null)
                {
                    Name             = tempUserProfile.Name;
                    Mobile           = tempUserProfile.Mobile;
                    Email            = tempUserProfile.Email;
                    SelectedCity     = tempUserProfile.City;
                    SelectedCountry  = tempUserProfile.Country;
                    ImagePath        = tempUserProfile.PathToProfileImage;
                    SelectedCategory = tempUserProfile.Category;
                    Company          = tempUserProfile.CompanyName;
                    CompanyAddress   = tempUserProfile.CompanyRegisteredAddress;
                    userSystemUUID   = tempUserProfile.SystemUUID;
                }
            }

            locationService        = new LocationService();
            userService            = new UserService();
            userProfileRepository  = new UserProfileRepository();
            userIdentityRepository = new UserIdentityRepository();
            SubmitProfileChangeCmd = new SubmitProfileChangeRequestorCommand(this);

            ChangeProfileImageCmd = new Xamarin.Forms.Command((e) =>
            {
                ChangeProfileImageAsync();
            }, (param) =>
            {
                if (param == null)
                {
                    return(false);
                }

                var isBusy = (bool)param;

                return(!isBusy);
            });

            LoadContractorOptions();

            this.SubscribeMeToThis(parentViewModel);
            PopulateLocations();
            LoadImageUploaderOptions();
        }
Beispiel #25
0
 public UserService(IUserIdentityRepository userIdentityRepository, IHashManager hashManager)
 {
     this.userIdentityRepository = userIdentityRepository;
     this.hashManager            = hashManager;
 }
Beispiel #26
0
 public MailService(IMailProvider mailProvider, IUserIdentityRepository userIdentityRepository)
 {
     _mailProvider           = mailProvider;
     _userIdentityRepository = userIdentityRepository;
 }
 public BudgetService(IBudgetRepository budgetRepository, IUserIdentityRepository userIdentityRepository, IHttpContextAccessor httpContextAccessor)
 {
     this.budgetRepository       = budgetRepository;
     this.httpContextAccessor    = httpContextAccessor;
     this.userIdentityRepository = userIdentityRepository;
 }
Beispiel #28
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="UserIdentityService" /> class.
 /// </summary>
 /// <param name="identityRepository">The identity repository.</param>
 public UserIdentityService(IUserIdentityRepository identityRepository)
 {
     _identityRepository = identityRepository;
 }
 public FriendsViewComponent(IUserIdentityRepository userIdentityRepository)
 {
     _userIdentityRepository = userIdentityRepository;
 }
Beispiel #30
0
 public UserIdentityService(IUserIdentityRepository userIdentityRepository)
 {
     this.userIdentityRepository = userIdentityRepository;
 }
 public SearchViewComponent(IUserIdentityRepository userIdentityRepository)
 {
     _userIdentityRepository = userIdentityRepository;
 }
Beispiel #32
0
 public FriendsController(IUserIdentityRepository userIdentityRepository,
                          IFriends friends)
 {
     _userIdentityRepository = userIdentityRepository;
     _friends = friends;
 }
Beispiel #33
0
 public UserService(IUserIdentityRepository userIdentityRepository, IHttpContextAccessor httpContextAccessor)
 {
     this.userIdentityRepository = userIdentityRepository;
     this.httpContextAccessor    = httpContextAccessor;
 }