internal YouTubeHttpService(GoogleHttpService service) : base(service) { Channels = new YouTubeChannelsEndpoint(this); Playlists = new YouTubePlaylistsEndpoint(this); PlaylistItems = new YouTubePlaylistItemsEndpoint(this); Videos = new YouTubeVideosEndpoint(this); }
/// <summary> /// Gets a reference to the YouTube HTTP service. /// </summary> /// <param name="service">A Google HTTP service instance.</param> /// <returns>An instance of <see cref="YouTubeHttpService"/>.</returns> public static YouTubeHttpService YouTube(this GoogleHttpService service) { if (service == null) { throw new ArgumentNullException(nameof(service)); } return(service.GetHttpService(() => new YouTubeHttpService(service))); }
public UserController(IUserService userService, IConfiguration configuration, IAzureBlobService azureBlobService, GoogleHttpService googleHttpService, FacebookHttpService facebookHttpService) { _userService = userService; _configuration = configuration; _azureBlobService = azureBlobService; _googleHttpService = googleHttpService; _facebookHttpService = facebookHttpService; }
/// <summary> /// Initializes a new instance from the specified Google <paramref name="service"/>. /// </summary> /// <param name="service">The parent Google service.</param> protected GoogleHttpServiceBase(GoogleHttpService service) { Service = service; }