Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BotAddedInChannelHandler"/> class.
 /// </summary>
 /// <param name="teamRepository">The team repository.</param>
 /// <param name="botConnectorClientFactory">The bot connect client factory.</param>
 /// <param name="welcomeTeamAndMembersService">The welcome team and members service.</param>
 /// <param name="welcomeTeamMembersCardRenderer">The welcome team members card renderer.</param>
 public BotAddedInChannelHandler(
     TeamRepository teamRepository,
     BotConnectorClientFactory botConnectorClientFactory,
     WelcomeTeamMembersService welcomeTeamAndMembersService,
     WelcomeTeamMembersCardRenderer welcomeTeamMembersCardRenderer)
 {
     this.teamRepository                 = teamRepository;
     this.botConnectorClientFactory      = botConnectorClientFactory;
     this.welcomeTeamAndMembersService   = welcomeTeamAndMembersService;
     this.welcomeTeamMembersCardRenderer = welcomeTeamMembersCardRenderer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WelcomeTeamMembersService"/> class.
 /// </summary>
 /// <param name="configurationSettings">the configuration settings object.</param>
 /// <param name="eventRepository">The event repository.</param>
 /// <param name="botConnectorClientFactory">The bot connector client factory service.</param>
 /// <param name="sendToConversationQueue">The Azure service bus queue which triggers the send bot messages Azure function.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="userTeamMembershipRepository">The user membership repository.</param>
 /// <param name="welcomeTeamMembersCardRenderer">The welcome team members card renderer.</param>
 /// <param name="shareEventCardRenderer">The share event card renderer.</param>
 /// <param name="botActivityBuilder">The bot activity builder.</param>
 public WelcomeTeamMembersService(
     ConfigurationSettings configurationSettings,
     EventRepository eventRepository,
     BotConnectorClientFactory botConnectorClientFactory,
     SendToConversationQueue sendToConversationQueue,
     UserRepository userRepository,
     UserTeamMembershipRepository userTeamMembershipRepository,
     WelcomeTeamMembersCardRenderer welcomeTeamMembersCardRenderer,
     ShareEventCardRenderer shareEventCardRenderer,
     BotActivityBuilder botActivityBuilder)
 {
     this.configurationSettings          = configurationSettings;
     this.eventRepository                = eventRepository;
     this.botConnectorClientFactory      = botConnectorClientFactory;
     this.sendToConversationQueue        = sendToConversationQueue;
     this.userRepository                 = userRepository;
     this.userTeamMembershipRepository   = userTeamMembershipRepository;
     this.welcomeTeamMembersCardRenderer = welcomeTeamMembersCardRenderer;
     this.shareEventCardRenderer         = shareEventCardRenderer;
     this.botActivityBuilder             = botActivityBuilder;
 }