예제 #1
0
 public ConfigWrapper(IConfiguration config)
 {
     this._config         = config;
     this.visualModerator = new VisualModeratorConfig(config);
     this.textModerator   = new TextModeratorConfig(config);
     this.reviewTool      = new ReviewToolConfig(config);
 }
 public TextModerator(ConfigWrapper config)
 {
     this.textModeratorConfig = config.textModerator;
     this.client = new ContentModeratorClient(new ApiKeyServiceClientCredentials(textModeratorConfig.ApiSubscriptionKey))
     {
         Endpoint = textModeratorConfig.ApiEndpoint
     };
 }
예제 #3
0
 public ConfigWrapper(IConfiguration config)
 {
     this._config       = config;
     this.textModerator = new TextModeratorConfig(config);
 }