Пример #1
0
 public UserJwtController(IConfiguration configuration, IInquiryUserProcessor inquiryUserProcessor,
                          IUsersControllerDependencyBlock userBlock)
 {
     _configuration        = configuration;
     _inquiryUserProcessor = inquiryUserProcessor;
     _updateUserProcessor  = userBlock.UpdateUserProcessor;
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="users"></param>
 /// <param name="roles"></param>
 /// <param name="updater"></param>
 /// <param name="manager"></param>
 public ClientService(IUserService users, IRoleResolverService roles = null, IUpdateUserProcessor updater = null, IPasswordManager manager = null)
 {
     Users           = users;
     Roles           = roles ?? (new RoleResolverService(users, new RoleResolver {
         Users = users
     }));
     Updater         = updater ?? (new UpdateUserProcessor {
         Users = users, Roles = Roles
     });
     PasswordManager = manager ?? new PasswordManager();
 }
        public UsersControllerDependencyBlock(ICreateUserProcessor createUserProcessor, IUpdateUserProcessor updateUserProcessor, IActivateUserProcessor activateUserProcessor
                                              , IInquiryUserProcessor inquiryUserProcessor
                                              , IInquiryAllUsersProcessor allUserProcessor
                                              )

        {
            CreateUserProcessor      = createUserProcessor;
            UpdateUserProcessor      = updateUserProcessor;
            ActivateUserProcessor    = activateUserProcessor;
            InquiryUserProcessor     = inquiryUserProcessor;
            InquiryAllUsersProcessor = allUserProcessor;
        }
Пример #4
0
        public static UpdateResult[] DefineUser(this IUpdateUserProcessor processor, WebContext request)
        {
            var updateinfo = UserUpdateInfoSerializer.ExtractFromParameters(RequestParameters.Create(request));

            return(processor.DefineUser(request.User.Identity, updateinfo, null, true));
        }