Пример #1
0
 public ChatroomController(IChatroomService chatroomService
                           , IParticipantService participantService
                           , UserManager <ApplicationUser> userManager)
 {
     _chatroomService    = chatroomService ?? throw new ArgumentNullException(nameof(chatroomService));
     _participantService = participantService ?? throw new ArgumentNullException(nameof(participantService));
     _userManager        = userManager ?? throw new ArgumentNullException(nameof(userManager));
 }
Пример #2
0
 public ParticipantService(IParticipantRepository repository
                           , IParticipantMappingService mappingService
                           , IChatroomService chatroomService
                           , IChatroomMappingService chatroomMappingService
                           , ApplicationDbContext context)
 {
     _repository             = repository ?? throw new ArgumentNullException(nameof(repository));
     _mappingService         = mappingService ?? throw new ArgumentNullException(nameof(mappingService));
     _chatroomService        = chatroomService ?? throw new ArgumentNullException(nameof(chatroomService));
     _chatroomMappingService = chatroomMappingService ?? throw new ArgumentNullException(nameof(chatroomMappingService));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Пример #3
0
 public MessageService(IMessageRepository repository
                       , IMessageMappingService mappingService
                       , IChatroomService chatroomService
                       , UserManager <ApplicationUser> userManager
                       , IHttpContextAccessor httpContextAccessor
                       , ApplicationDbContext context)
 {
     _repository          = repository ?? throw new ArgumentNullException(nameof(repository));
     _mappingService      = mappingService ?? throw new ArgumentNullException(nameof(mappingService));
     _chatroomService     = chatroomService ?? throw new ArgumentNullException(nameof(chatroomService));
     _userManager         = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _context             = context ?? throw new ArgumentNullException(nameof(context));
 }
Пример #4
0
 public ChatroomController(IChatroomService chatroomService)
 {
     _chatroomService = chatroomService;
 }