Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExchangeSyncHelper"/> class.
 /// </summary>
 /// <param name="roomCollectionStorageProvider">Storage provider to perform insert, update and delete operations on RoomCollection table.</param>
 /// <param name="favoriteStorageProvider">Storage provider to perform delete operation on UserFavorites table.</param>
 /// <param name="apiHelper">Api helper service for making post and get calls to Graph.</param>
 /// <param name="telemetryClient">Telemetry service to log events and errors.</param>
 /// <param name="confidentialClientApplication">Used to get application access token.</param>
 /// <param name="searchService">Search service for searching room/building as per user input.</param>
 public ExchangeSyncHelper(IRoomCollectionStorageProvider roomCollectionStorageProvider, IFavoriteStorageProvider favoriteStorageProvider, IGraphApiHelper apiHelper, TelemetryClient telemetryClient, IConfidentialClientApplication confidentialClientApplication, ISearchService searchService)
 {
     this.searchService = searchService;
     this.roomCollectionStorageProvider = roomCollectionStorageProvider;
     this.favoriteStorageProvider       = favoriteStorageProvider;
     this.apiHelper       = apiHelper;
     this.telemetryClient = telemetryClient;
     this.confidentialClientApplication = confidentialClientApplication;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MeetingApiController"/> class.
 /// </summary>
 /// <param name="favoriteStorageProvider">Storage provider to perform fetch, insert, update and delete operation on UserFavorites table.</param>
 /// <param name="roomCollectionStorageProvider">Storage provider to perform fetch operation on RoomCollection table.</param>
 /// <param name="searchService">Search service for searching room/building as per user input.</param>
 /// <param name="telemetryClient">Telemetry client to log event and errors.</param>
 /// <param name="tokenHelper">Generating and validating JWT token.</param>
 /// <param name="meetingHelper">Helper class which exposes methods required for meeting creation.</param>
 /// <param name="userConfigurationStorageProvider">Storage provider to perform fetch operation on UserConfiguration table.</param>
 /// <param name="userConfigurationProvider">Provider to get user specific data from Graph API.</param>
 public MeetingApiController(IFavoriteStorageProvider favoriteStorageProvider, IRoomCollectionStorageProvider roomCollectionStorageProvider, ISearchService searchService, TelemetryClient telemetryClient, ITokenHelper tokenHelper, IMeetingHelper meetingHelper, IUserConfigurationStorageProvider userConfigurationStorageProvider, IUserConfigurationProvider userConfigurationProvider)
 {
     this.favoriteStorageProvider       = favoriteStorageProvider;
     this.roomCollectionStorageProvider = roomCollectionStorageProvider;
     this.searchService   = searchService;
     this.telemetryClient = telemetryClient;
     this.tokenHelper     = tokenHelper;
     this.meetingHelper   = meetingHelper;
     this.userConfigurationStorageProvider = userConfigurationStorageProvider;
     this.userConfigurationProvider        = userConfigurationProvider;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeetingHelper"/> class.
 /// </summary>
 /// <param name="meetingProvider">Provider for post and get API calls to Graph.</param>
 /// <param name="userConfigurationProvider">Provider for getting user specific configuration.</param>
 /// <param name="roomCollectionStorageProvider">Storage provider to perform fetch operation on RoomCollection table.</param>
 /// <param name="memoryCache">Memory cache to store rooms.</param>
 public MeetingHelper(IMeetingProvider meetingProvider, IRoomCollectionStorageProvider roomCollectionStorageProvider, IMemoryCache memoryCache)
 {
     this.meetingProvider = meetingProvider;
     this.roomCollectionStorageProvider = roomCollectionStorageProvider;
     this.memoryCache = memoryCache;
 }