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)); }
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)); }
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)); }
public ChatroomController(IChatroomService chatroomService) { _chatroomService = chatroomService; }