コード例 #1
0
        public PodcastController(IPodcastFeedProvider podcastFeedService, IPodcastProvider podcastProvider)
        {
            if (podcastFeedService == null)
            {
                throw new ArgumentNullException(nameof(podcastFeedService));
            }
            this.podcastFeedService = podcastFeedService;

            if (podcastProvider == null)
            {
                throw new ArgumentNullException(nameof(podcastProvider));
            }
            this.podcastProvider = podcastProvider;
        }
コード例 #2
0
 public RssServingEndpoint(IPodcastFeedProvider feedProvider)
 {
     this.feedProvider = feedProvider;
 }