/// <summary> /// Creates a <see cref="ResumeServiceClient"/> which uses the specified call invoker for remote operations. /// </summary> /// <param name="callInvoker">The <see cref="grpccore::CallInvoker"/> for remote operations. Must not be null.</param> /// <param name="settings">Optional <see cref="ResumeServiceSettings"/>.</param> /// <returns>The created <see cref="ResumeServiceClient"/>.</returns> public static ResumeServiceClient Create(grpccore::CallInvoker callInvoker, ResumeServiceSettings settings = null) { gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); grpccore::Interceptors.Interceptor interceptor = settings?.Interceptor; if (interceptor != null) { callInvoker = grpccore::Interceptors.CallInvokerExtensions.Intercept(callInvoker, interceptor); } ResumeService.ResumeServiceClient grpcClient = new ResumeService.ResumeServiceClient(callInvoker); return(new ResumeServiceClientImpl(grpcClient, settings)); }
/// <summary> /// Constructs a client wrapper for the ResumeService service, with the specified gRPC client and settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings">The base <see cref="ResumeServiceSettings"/> used within this client </param> public ResumeServiceClientImpl(ResumeService.ResumeServiceClient grpcClient, ResumeServiceSettings settings) { GrpcClient = grpcClient; ResumeServiceSettings effectiveSettings = settings ?? ResumeServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callParseResume = clientHelper.BuildApiCall <ParseResumeRequest, ParseResumeResponse>( GrpcClient.ParseResumeAsync, GrpcClient.ParseResume, effectiveSettings.ParseResumeSettings); Modify_ApiCall(ref _callParseResume); Modify_ParseResumeApiCall(ref _callParseResume); OnConstruction(grpcClient, effectiveSettings, clientHelper); }
partial void OnConstruction(ResumeService.ResumeServiceClient grpcClient, ResumeServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);