Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeetingService"/> class.
 /// </summary>
 /// <param name="httpClientFactory">The Http client factory.</param>
 /// <param name="botCredentials">The Bot credentials.</param>
 /// <param name="botAdapter">The Bot Framework HTTP adapter.</param>
 /// <param name="tenantInfoRepository">The TenantInfo repository.</param>
 /// <param name="meetingServiceOptions">App options related to the meetings service.</param>
 public MeetingService(
     IHttpClientFactory httpClientFactory,
     AppCredentials botCredentials,
     IBotFrameworkHttpAdapter botAdapter,
     ITenantInfoRepository tenantInfoRepository,
     IOptions <MeetingServiceOptions> meetingServiceOptions)
 {
     this.botCredentials       = botCredentials;
     this.botAdapter           = (BotFrameworkHttpAdapter)botAdapter;
     this.httpClient           = httpClientFactory.CreateClient();
     this.tenantInfoRepository = tenantInfoRepository;
     this.teamsAppId           = meetingServiceOptions.Value.TeamsAppId;
     this.contentBubbleUrl     = meetingServiceOptions.Value.ContentBubbleUrl;
 }
Example #2
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IAuthenticationSchemeProvider schemeProvider,
     IEventService events, ITenantInfoRepository tenantInfoRepository)
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _interaction          = interaction;
     _clientStore          = clientStore;
     _schemeProvider       = schemeProvider;
     _events               = events;
     _tenantInfoRepository = tenantInfoRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenBot"/> class.
 /// </summary>
 /// <param name="tenantInfoRepository">tenant information repository.</param>
 public TokenBot(ITenantInfoRepository tenantInfoRepository)
 {
     this.tenantInfoRepository = tenantInfoRepository;
 }