public ConnectionsController( IConnectionsService connectionsService, IIdentityService identityService, INotificationsGrpcService notificationsGrpcService) { _connectionsService = connectionsService ?? throw new ArgumentNullException(nameof(connectionsService)); _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService)); _notificationsGrpcService = notificationsGrpcService ?? throw new ArgumentNullException(nameof(notificationsGrpcService)); }
public RoomsController( IRoomsService roomsService, IGroupRoomsService groupRoomsService, IIdentityService identityService, INotificationsGrpcService notificationsGrpcService) { _roomsService = roomsService ?? throw new ArgumentNullException(nameof(roomsService)); _groupRoomsService = groupRoomsService ?? throw new ArgumentNullException(nameof(groupRoomsService)); _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService)); _notificationsGrpcService = notificationsGrpcService ?? throw new ArgumentNullException(nameof(notificationsGrpcService)); }