Example #1
0
 public UserFacade(IUnitOfWorkProvider unitOfWorkProvider, IUserService userService,
                   IFriendshipService friendshipService)
     : base(unitOfWorkProvider)
 {
     this.userService       = userService;
     this.friendshipService = friendshipService;
 }
Example #2
0
 public MessengerController(IMessengerService messengerService, IUserService userService, IFriendshipService friendshipService, IMapper mapper)
 {
     this.messengerService  = messengerService;
     this.userService       = userService;
     this.friendshipService = friendshipService;
     this.mapper            = mapper;
 }
Example #3
0
 public FriendshipsController(
     IFriendshipService friendshipService,
     IUserService userService)
 {
     this._friendshipService = friendshipService;
     this._userService       = userService;
 }
 public NotificationController(
     IFriendshipService friendshipService,
     IMembershipService membershipService)
 {
     this._friendshipService = friendshipService;
     this._membershipService = membershipService;
 }
 public UserController(IUserService userService,
                       IFriendshipService friendshipService,
                       IConversationService conversationService)
 {
     _userService         = userService;
     _friendshipService   = friendshipService;
     _conversationService = conversationService;
 }
Example #6
0
 protected FriendshipFacade(
     IUnitOfWorkProvider unitOfWorkProvider,
     CrudQueryServiceBase <Friendship, FriendshipDto, FriendshipFilterDto> service,
     IFriendshipService friendshipService
     ) : base(unitOfWorkProvider, service)
 {
     _friendshipService = friendshipService;
 }
 public HomeController(IUserService userService, IRoleService roleService, IGradeService gradeService, IBookService bookService, IFriendshipService friendshipService)
 {
     this.userService = userService;
     this.roleService = roleService;
     this.gradeService = gradeService;
     this.bookService = bookService;
     this.friendshipService = friendshipService;
 }
Example #8
0
        private IEnumerable<ChatUser> GetChatUsers()
        {
            _frinedshipService = DependencyResolver.Current.GetService<IFriendshipService>();
            var friends = _frinedshipService.GetFriendshipsByUserId(UserProfile.Current.UserId);

            var chatUsers = friends.Select(x => new ChatUser().InjectFrom((x.UserId == UserProfile.Current.UserId)?x.Friend:x.User)).Cast<ChatUser>().ToList();
            return chatUsers;
        }
 public SeedingDataService(UserManager <User> userManager,
                           RoleManager <IdentityRole> roleManager,
                           IFriendshipService friendshipService)
 {
     _userManager       = userManager;
     _roleManager       = roleManager;
     _friendshipService = friendshipService;
 }
 public PersonalPageController(
     ISubscriptionService subscriptionService,
     IMembershipService membershipService,
     IFriendshipService friendshipService)
 {
     this._subscriptionService = subscriptionService;
     this._membershipService = membershipService;
     this._friendshipService = friendshipService;
 }
 public CommentsController(
     IFriendshipService friendshipService,
     ICommentService commentService,
     ITaggedUserService taggedUserService,
     IUserService userService)
 {
     this._friendshipService = friendshipService;
     this._commentService    = commentService;
     this._taggedUserService = taggedUserService;
     this._userService       = userService;
 }
Example #12
0
 public FriendshipsController(
     IFriendshipService friendshipService,
     IMapper mapper,
     ILogService log,
     IOptions <AppSettings> appSettings)
 {
     _friendshipService = friendshipService;
     _mapper            = mapper;
     _log         = log;
     _appSettings = appSettings.Value;
 }
Example #13
0
 public BasicUserFacade(
     IUnitOfWorkProvider unitOfWorkProvider,
     IBasicUsersService basicUsersService,
     IFriendshipService friendshipService,
     IGetUserGroupsService getUserGroupsService
     ) : base(unitOfWorkProvider)
 {
     _basicUsersService    = basicUsersService;
     _friendshipService    = friendshipService;
     _getUserGroupsService = getUserGroupsService;
 }
 public FriendshipController(
     IFriendshipService friendshipService,
     IMembershipService membershipService,
     ISubscriptionService subscriptionService,
     IFriendshipMapper friendshipMapper)
 {
     this._friendshipService = friendshipService;
     this._membershipService = membershipService;
     this._subscriptionService = subscriptionService;
     this._friendshipMapper = friendshipMapper;
 }
Example #15
0
 public PostService(IMapper mapper, IRepository <Post> repository,
                    QueryObjectBase <PostDto, Post, PostFilterDto, IQuery <Post> > postQueryObject,
                    IHashtagService hashtagService,
                    IUserService userService,
                    IFriendshipService friendshipService)
     : base(mapper, repository, postQueryObject)
 {
     this.hashtagService    = hashtagService;
     this.userService       = userService;
     this.friendshipService = friendshipService;
 }
 public PostFacade(IUnitOfWorkProvider unitOfWorkProvider,
                   IPostService postService, IPostReplyService postReplyService, IFriendshipService friendshipService,
                   IVoteService voteService, IImageService imageService,
                   IHashtagService hashtagService)
     : base(unitOfWorkProvider)
 {
     this.postService       = postService;
     this.voteService       = voteService;
     this.imageService      = imageService;
     this.postReplyService  = postReplyService;
     this.hashtagService    = hashtagService;
     this.friendshipService = friendshipService;
 }
 public ImageController(
     IImageAlbumService imageAlbumService,
     IMembershipService membershipService,
     ISubscriptionService subscriptionService,
     IFriendshipService friendshipService,
     IImageMapper imageMapper)
 {
     this._membershipService = membershipService;
     this._imageAlbumService = imageAlbumService;
     this._subscriptionService = subscriptionService;
     this._imageMapper = imageMapper;
     this._friendshipService = friendshipService;
 }
Example #18
0
 public UserProfileFacade(IUnitOfWorkProvider unitOfWorkProvider,
                          IUserProfileUserService userProfileUserService,
                          IUserProfilePostService userProfilePostService,
                          ICommentService commentService,
                          IBasicUsersService basicUsersService,
                          IFriendshipService friendshipService) : base(unitOfWorkProvider)
 {
     _userProfileUserService = userProfileUserService;
     _userProfilePostService = userProfilePostService;
     _commentService         = commentService;
     _basicUsersService      = basicUsersService;
     _friendshipService      = friendshipService;
 }
 protected virtual void UpdateFriendsList(IFriendshipService friendshipService)
 {
     var user = this.User.Identity as CustomIdentity;
     try
     {
         this.Session[Constants.SessionFriendTargets] =
             friendshipService.GetFriends(user.Id).Select(p => p.User.Key).ToArray();
     }
     catch (Exception)
     {
         this.Session[Constants.SessionFriendTargets] = new int[0];
     }
 }
 public PostsController(
     IFriendshipService friendshipService,
     IPostService postService,
     ITaggedUserService taggedUserService,
     ICommentService commentService,
     IUserService userService,
     IJsonService <UserServiceModel> jsonService)
 {
     this._friendshipService = friendshipService;
     this._postService       = postService;
     this._taggedUserService = taggedUserService;
     this._commentService    = commentService;
     this._userService       = userService;
     this._jsonService       = jsonService;
 }
Example #21
0
 public FriendshipController(IFriendshipService service) : base(service)
 {
     FriendShipService = service;
 }
Example #22
0
 public AcceptFriendCommand(IFriendshipService friendshipService)
 {
     this.friendshipService = friendshipService;
 }
Example #23
0
 public FriendshipController(IFriendshipService friendshipService, IFriendshipValidatorService friendshipValidatorService)
 {
     _friendshipService          = friendshipService;
     _friendshipValidatorService = friendshipValidatorService;
 }
Example #24
0
 public FriendshipController(IFriendshipService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
 public FriendshipController(ICharacterService characterService, IFriendshipService friendshipService, IMapper mapper)
 {
     _characterService  = characterService;
     _friendshipService = friendshipService;
     _mapper            = mapper;
 }
Example #26
0
 public FriendshipController(IFriendshipService friendshipService, IStringLocalizer <FriendshipController> localizer)
 {
     _friendshipService = friendshipService;
     _localizer         = localizer;
 }
 public AcceptFriendCommand(IUserService userService, IFriendshipService friendshipService)
 {
     this.userService       = userService;
     this.friendshipService = friendshipService;
 }
 public OperationController(IFriendshipService friendshipService)
 {
     this._friendshipService = friendshipService;
 }
Example #29
0
 public AddFriendCommand(IUserSessionService userSessionService, IFriendshipService friendshipService)
 {
     this.userSessionService = userSessionService;
     this.friendshipService  = friendshipService;
 }
Example #30
0
 public SocialController(IFriendshipService friendshipService, IUserService userService, IMapper mapper)
 {
     this.friendshipService = friendshipService;
     this.userService       = userService;
     this.mapper            = mapper;
 }
Example #31
0
 public FriendshipController(IGenericServiceAsync <FriendshipDto, Friendship> genericService, IFriendshipService friendshipService, UserManager <ApplicationUser> userManager) : base(genericService)
 {
     _friendshipService = friendshipService;
     _userManager       = userManager;
 }
Example #32
0
 public ListFriendsCommand(IFriendshipService friendshipService)
 {
     this.friendshipService = friendshipService;
 }
Example #33
0
 public FriendshipsController(IFriendshipService friendshipService)
 {
     FriendshipService = friendshipService;
 }
Example #34
0
 public MessengerService(IMessageRepository messageRepository, IUserService userService, IFriendshipService friendshipService)
 {
     this.messageRepository = messageRepository;
     this.userService       = userService;
     this.friendshipService = friendshipService;
 }
        public FriendshipController(IFriendshipService friendshipService, IUserService userService)
        {
            this.friendshipService = friendshipService;
            this.userService = userService;

        }