public GameService(IChannelRepository channelRepository, IGameRepository gameRepository, IChannelHelper channelHelper, IParseService parseService) { _channelRepository = channelRepository ?? throw new ArgumentNullException(nameof(channelRepository)); _gameRepository = gameRepository ?? throw new ArgumentNullException(nameof(gameRepository)); _channelHelper = channelHelper ?? throw new ArgumentNullException(nameof(channelHelper)); _parseService = parseService ?? throw new ArgumentNullException(nameof(parseService)); }
/// <summary> /// Initializes a new instance of the <see cref="GroupActivitiesBot"/> class. /// </summary> /// <param name="optionsAccessor">A set of key/value application configuration properties for Group activities bot.</param> /// <param name="channelHelper">Helper for creating public and private channels.</param> /// <param name="groupingHelper">Helper for grouping members to channels based on specified splitting criteria.</param> /// <param name="groupActivityStorageHelper">Helper for storing group activity in azure table storage.</param> /// <param name="teamUserHelper">Helper to get group members and verify if user is a team owner.</param> /// <param name="telemetryClient">Telemetry client.</param> /// <param name="logger">Instance to send logs to the Application Insights service.</param> public GroupActivitiesBot(IOptionsMonitor <BotAppSetting> optionsAccessor, IChannelHelper channelHelper, IGroupingHelper groupingHelper, IGroupActivityStorageHelper groupActivityStorageHelper, ITeamUserHelper teamUserHelper, TelemetryClient telemetryClient, ILogger <GroupActivitiesBot> logger) { this.options = optionsAccessor.CurrentValue; this.tenantId = this.options.TenantId; this.appBaseUrl = this.options.AppBaseURI; this.connectionName = this.options.ConnectionName; this.channelHelper = channelHelper; this.groupingHelper = groupingHelper; this.groupActivityStorageHelper = groupActivityStorageHelper; this.teamUserHelper = teamUserHelper; this.telemetryClient = telemetryClient; this.logger = logger; }
public ChannelService(IChannelRepository channelRepository, IChannelHelper channelHelper) { _channelRepository = channelRepository ?? throw new ArgumentNullException(nameof(channelRepository)); _channelHelper = channelHelper ?? throw new ArgumentNullException(nameof(channelHelper)); }
public ChannelManager(IChannelHelper channelHelper) { Helper = (ChannelHelper)channelHelper; }