Esempio n. 1
0
 public ConfigWrapper(IConfiguration config)
 {
     this._config         = config;
     this.visualModerator = new VisualModeratorConfig(config);
     this.textModerator   = new TextModeratorConfig(config);
     this.reviewTool      = new ReviewToolConfig(config);
 }
Esempio n. 2
0
 public VideoReviewUploader(ConfigWrapper config)
 {
     this.reviewToolConfig = config.reviewTool;
     this.client           = new ContentModeratorClient(new ApiKeyServiceClientCredentials(reviewToolConfig.ApiSubscriptionKey))
     {
         Endpoint = reviewToolConfig.ApiEndpoint
     };
 }