Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChatsService"/> class.
 /// </summary>
 /// <param name="graphServiceClient">Graph service client.</param>
 /// <param name="appManagerService">App manager service.</param>
 internal ChatsService(
     IGraphServiceClient graphServiceClient,
     IAppManagerService appManagerService)
 {
     this.graphServiceClient = graphServiceClient ?? throw new ArgumentNullException(nameof(graphServiceClient));
     this.appManagerService  = appManagerService ?? throw new ArgumentNullException(nameof(appManagerService));
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChatsService"/> class.
 /// </summary>
 /// <param name="betaServiceClient">Beta graph service client.</param>
 /// <param name="appManagerService">App manager service.</param>
 internal ChatsService(
     Beta.IGraphServiceClient betaServiceClient,
     IAppManagerService appManagerService)
 {
     this.betaServiceClient = betaServiceClient ?? throw new ArgumentNullException(nameof(betaServiceClient));
     this.appManagerService = appManagerService ?? throw new ArgumentNullException(nameof(appManagerService));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AppManagerBackgroundService"/> class.
 /// </summary>
 /// <param name="graphTokenUtility">Instance of Microsoft Graph utility helper.</param>
 /// <param name="appManagerServiceHelper">Helper for working with Microsoft Graph API.</param>
 /// <param name="logger">Instance of ILogger</param>
 /// <param name="userStorageProvider">Provider for fetching information about user details from storage.</param>
 /// <param name="teamMembershipHelper">Helper for team operations with Microsoft Graph API.</param>
 /// <param name="botOptions">A set of key/value application configuration properties.</param>
 /// <param name="securityGroupSettings"> A set of key/value application configuration properties for AAD security group settings.</param>
 /// <param name="userProfileOperations">Helper for working with Microsoft Graph API for user operation.</param>
 public AppManagerBackgroundService(
     IGraphUtilityHelper graphTokenUtility,
     IAppManagerService appManagerServiceHelper,
     ILogger <AppManagerBackgroundService> logger,
     IUserStorageProvider userStorageProvider,
     ITeamMembership teamMembershipHelper,
     IOptions <BotOptions> botOptions,
     IOptions <AadSecurityGroupSettings> securityGroupSettings,
     IUserProfile userProfileOperations)
 {
     this.appManagerServiceHelper = appManagerServiceHelper ?? throw new ArgumentNullException(nameof(appManagerServiceHelper));
     this.graphTokenUtility       = graphTokenUtility ?? throw new ArgumentNullException(nameof(graphTokenUtility));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
     this.userStorageProvider   = userStorageProvider ?? throw new ArgumentNullException(nameof(userStorageProvider));
     this.botOptions            = botOptions ?? throw new ArgumentNullException(nameof(botOptions));
     this.securityGroupSettings = securityGroupSettings ?? throw new ArgumentNullException(nameof(securityGroupSettings));
     this.membersService        = teamMembershipHelper ?? throw new ArgumentNullException(nameof(teamMembershipHelper));
     this.userProfileOperations = userProfileOperations ?? throw new ArgumentNullException(nameof(userProfileOperations));
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamsConversationActivity"/> class.
 /// </summary>
 /// <param name="conversationService">The create user conversation service.</param>
 /// <param name="sentNotificationDataRepository">The sent notification data repository.</param>
 /// <param name="userDataRepository">The user data repository.</param>
 /// <param name="notificationDataRepository">Notification data entity repository.</param>
 /// <param name="appManagerService">App manager service.</param>
 /// <param name="chatsService">Chats service.</param>
 /// <param name="appSettingsService">App Settings service.</param>
 /// <param name="options">Teams conversation options.</param>
 /// <param name="localizer">Localization service.</param>
 public TeamsConversationActivity(
     IConversationService conversationService,
     ISentNotificationDataRepository sentNotificationDataRepository,
     IUserDataRepository userDataRepository,
     INotificationDataRepository notificationDataRepository,
     IAppManagerService appManagerService,
     IChatsService chatsService,
     IAppSettingsService appSettingsService,
     IOptions <TeamsConversationOptions> options,
     IStringLocalizer <Strings> localizer)
 {
     this.conversationService            = conversationService ?? throw new ArgumentNullException(nameof(conversationService));
     this.sentNotificationDataRepository = sentNotificationDataRepository ?? throw new ArgumentNullException(nameof(sentNotificationDataRepository));
     this.userDataRepository             = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository));
     this.notificationDataRepository     = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository));
     this.appManagerService  = appManagerService ?? throw new ArgumentNullException(nameof(appManagerService));
     this.chatsService       = chatsService ?? throw new ArgumentNullException(nameof(chatsService));
     this.appSettingsService = appSettingsService ?? throw new ArgumentNullException(nameof(appSettingsService));
     this.options            = options?.Value ?? throw new ArgumentNullException(nameof(options));
     this.localizer          = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
Exemple #5
0
 public AppManagerController(IAppManagerService appManagerService, IHubContext hubContext)
 {
     _appManagerService = appManagerService;
     _hubContext        = hubContext;
 }