protected internal BitmovinApiClientFactory(
            string apiKey,
            string tenantOrgId,
            string baseUrl,
            IBitmovinApiLogger logger)
        {
            if (string.IsNullOrEmpty(apiKey))
            {
                throw new ArgumentNullException(nameof(apiKey));
            }

            ApiKey      = apiKey;
            TenantOrgId = tenantOrgId;
            Logger      = logger;

            if (string.IsNullOrEmpty(baseUrl))
            {
                baseUrl = "https://api.bitmovin.com/v1";
            }

            JsonSettings = CreateJsonSettings();
            RestClient   = CreateRestClient(baseUrl);
        }
Example #2
0
        public BitmovinApiBuilder <T> WithLogger(IBitmovinApiLogger loggerFactory)
        {
            _loggerFactory = loggerFactory;

            return(this);
        }
 public LoggingHandler(IBitmovinApiLogger logger)
 {
     _logger = logger;
 }