Пример #1
0
 public RelationManager(Data.IRelationRepository relationRepository,
                        Tgnet.FootChat.Push.INotifyServiceProxy notifyServiceProxy,
                        Tgnet.FootChat.Push.IMessageService messageService,
                        IRelationEventFactory relationEventFactory,
                        IUserManager userManager)
 {
     _UserManager          = userManager;
     _MessageService       = messageService;
     _RelationEventFactory = relationEventFactory;
     _NotifyServiceProxy   = notifyServiceProxy;
     _RelationRepository   = relationRepository;
 }
Пример #2
0
 public UserRelationManager(IUserService user,
                            Data.IRelationRepository relationRepository,
                            Tgnet.FootChat.Push.INotifyServiceProxy notifyServiceProxy,
                            Tgnet.FootChat.Push.IMessageService messageService,
                            IRelationEventFactory relationEventFactory,
                            IUserManager userManager)
 {
     ExceptionHelper.ThrowIfNull(user, "user");
     _UserManager          = userManager;
     _User                 = user;
     _MessageService       = messageService;
     _RelationEventFactory = relationEventFactory;
     _NotifyServiceProxy   = notifyServiceProxy;
     _RelationRepository   = relationRepository;
 }