/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ep2-substring-2022-08-24.normal.json service model. */ using System; using Amazon.Ep2substring.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.Ep2substring.Endpoints; #pragma warning disable 1591 namespace Amazon.Ep2substring.Internal { /// /// Amazon Ep2substring endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Ep2substring service requests. /// Collects values for Ep2substringEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses Ep2substringEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// public class AmazonEp2substringEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonEp2substringConfig)requestContext.ClientConfig; var result = new Ep2substringEndpointParameters(); // Assign staticContextParams and contextParam per operation return result; } } }