コード例 #1
0
 internal ListJobsByPipelinePaginator(IAmazonElasticTranscoder client, ListJobsByPipelineRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
コード例 #3
0
 internal ElasticTranscoderPaginatorFactory(IAmazonElasticTranscoder client)
 {
     this.client = client;
 }
コード例 #4
0
 private Amazon.ElasticTranscoder.Model.ReadJobResponse CallAWSServiceOperation(IAmazonElasticTranscoder client, Amazon.ElasticTranscoder.Model.ReadJobRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic Transcoder", "ReadJob");
     try
     {
         #if DESKTOP
         return(client.ReadJob(request));
         #elif CORECLR
         return(client.ReadJobAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
コード例 #5
0
 internal ListPresetsPaginator(IAmazonElasticTranscoder client, ListPresetsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
コード例 #6
0
        /// <summary>
        /// Default constructor that Lambda will invoke.
        /// </summary>
        public Entrypoint()
        {
            AmazonElasticTranscoderConfig Config = new AmazonElasticTranscoderConfig();

            this._ETClient = new AmazonElasticTranscoderClient(Config);
        }
コード例 #7
0
 /// <summary>
 ///     Constructs an instance with a pre-configured Elastic Transcoder client. This can be used for testing the outside of the Lambda environment.
 /// </summary>
 /// <param name="elasticTranscoder"></param>
 public TranscodeVideoFunction(IAmazonElasticTranscoder elasticTranscoder)
 {
     _elasticTranscoder = elasticTranscoder;
 }
コード例 #8
0
 /// <summary>
 ///     Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment
 ///     the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the
 ///     region the Lambda function is executed in.
 /// </summary>
 public TranscodeVideoFunction()
 {
     _elasticTranscoder = new AmazonElasticTranscoderClient();
 }
コード例 #9
0
 /// <summary>
 /// Default constructor that Lambda will invoke.
 /// </summary>
 public LambdaEntrypoint()
 {
     this._ETClient = new AmazonElasticTranscoderClient();
 }