コード例 #1
0
        /// <summary>
        /// Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="ReportErrorsServiceSettings"/> used within this client </param>
        public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings)
        {
            this.GrpcClient = grpcClient;
            ReportErrorsServiceSettings effectiveSettings = settings ?? ReportErrorsServiceSettings.GetDefault();

            _clientHelper         = new ClientHelper(effectiveSettings);
            _callReportErrorEvent = _clientHelper.BuildApiCall <ReportErrorEventRequest, ReportErrorEventResponse>(
                GrpcClient.ReportErrorEventAsync, GrpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings);
        }
コード例 #2
0
        /// <summary>
        /// Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="ReportErrorsServiceSettings"/> used within this client.</param>
        public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings)
        {
            GrpcClient = grpcClient;
            ReportErrorsServiceSettings effectiveSettings = settings ?? ReportErrorsServiceSettings.GetDefault();
            gaxgrpc::ClientHelper       clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callReportErrorEvent = clientHelper.BuildApiCall <ReportErrorEventRequest, ReportErrorEventResponse>(grpcClient.ReportErrorEventAsync, grpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings).WithGoogleRequestParam("project_name", request => request.ProjectName);
            Modify_ApiCall(ref _callReportErrorEvent);
            Modify_ReportErrorEventApiCall(ref _callReportErrorEvent);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
コード例 #3
0
        /// <summary>
        /// Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="ReportErrorsServiceSettings"/> used within this client.</param>
        public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings)
        {
            GrpcClient = grpcClient;
            ReportErrorsServiceSettings effectiveSettings = settings ?? ReportErrorsServiceSettings.GetDefault();
            gaxgrpc::ClientHelper       clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callReportErrorEvent = clientHelper.BuildApiCall <ReportErrorEventRequest, ReportErrorEventResponse>(grpcClient.ReportErrorEventAsync, grpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings).WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_name={(sysnet::WebUtility.UrlEncode(request.ProjectName))}"));
            Modify_ApiCall(ref _callReportErrorEvent);
            Modify_ReportErrorEventApiCall(ref _callReportErrorEvent);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }