public UserProfileService(AlexandriaContext context, IAuthorizationService authorizationService, IPassportClient passportClient, IBackgroundWorker backgroundWorker, IOptions <Shared.Configuration.Queue> queues, SlackClient slackClient, IProfanityValidator profanityValidator) { this.context = context; this.authorizationService = authorizationService; this.passportClient = passportClient; this.backgroundWorker = backgroundWorker; this.queues = queues.Value ?? throw new NoNullAllowedException("Queue Options can't be null"); this.slackClient = slackClient; this.profanityValidator = profanityValidator; }
public TeamService(IHttpContextAccessor httpContext, AlexandriaContext context, IUserUtils userUtils, IAuthorizationService authorizationService, IBackgroundWorker backgroundWorker, IOptions <Shared.Configuration.Queue> queues, IProfanityValidator profanityValidator, SlackClient slackClient, ICacheBreaker cacheBreaker) { this.httpContext = httpContext.HttpContext; this.context = context; this.userUtils = userUtils; this.authorizationService = authorizationService; this.backgroundWorker = backgroundWorker; this.queues = queues.Value ?? throw new NoNullAllowedException("Queue Options can't be null"); this.profanityValidator = profanityValidator; this.slackClient = slackClient; this.cacheBreaker = cacheBreaker; }